Ejemplo n.º 1
0
 public static Vector2 ApproachingLimitCap(this Vector2 self, Vector2 other, Vector2 inc, Vector2Item item)
 {
     return(new Vector2(
                item.IsX() ? ApproachingLimitCap(self.x, other.x, inc.x) : self.x,
                item.IsY() ? ApproachingLimitCap(self.y, other.y, inc.y) : self.y
                ));
 }
Ejemplo n.º 2
0
 public static bool IsY(this Vector2Item self)
 {
     return((self & Vector2Item.Y) == Vector2Item.Y);
 }
Ejemplo n.º 3
0
 public static Vector2 Merge(this Vector2 self, Vector2 other, Vector2Item item)
 {
     return(new Vector2(item.IsX() ? other.x : self.x, item.IsY() ? other.y : self.y));
 }
Ejemplo n.º 4
0
 public static bool IsX(this Vector2Item self)
 {
     return((self & Vector2Item.X) == Vector2Item.X);
 }