Ejemplo n.º 1
0
 public static Vector3 ApproachingLimitCap(this Vector3 self, Vector3 other, Vector3 inc, Vector3Item item)
 {
     return(new Vector3(
                item.IsX() ? ApproachingLimitCap(self.x, other.x, inc.x) : self.x,
                item.IsY() ? ApproachingLimitCap(self.y, other.y, inc.y) : self.y,
                item.IsZ() ? ApproachingLimitCap(self.z, other.z, inc.z) : self.z
                ));
 }
Ejemplo n.º 2
0
 public static Vector3 Merge(this Vector3 self, Vector3 other, Vector3Item item)
 {
     return(new Vector3(item.IsX() ? other.x : self.x, item.IsY() ? other.y : self.y, item.IsZ() ? other.z : self.z));
 }