Esempio 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
                ));
 }
Esempio n. 2
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));
 }