12 public static Vector2Int
Clone(
this Vector2Int v)
14 return new Vector2Int(v.x, v.y);
22 public static Vector2Int
WithX(
this Vector2Int v,
int x = 0)
24 return new Vector2Int(x, v.y);
32 public static Vector2Int
WithY(
this Vector2Int v,
int y = 0)
34 return new Vector2Int(v.x, y);
44 return new Vector3Int(x, v.x, v.y);
54 return new Vector3Int(v.x, y, v.y);
64 return new Vector3Int(v.x, v.y, z);
71 public static Vector3Int
Clone(
this Vector3Int v)
73 return new Vector3Int(v.x, v.y, v.z);
82 return new Vector2Int(v.y, v.z);
91 return new Vector2Int(v.x, v.z);
100 return new Vector2Int(v.x, v.y);
108 public static Vector3Int
WithX(
this Vector3Int v,
int x = 0)
110 return new Vector3Int(x, v.y, v.z);
118 public static Vector3Int
WithY(
this Vector3Int v,
int y = 0)
120 return new Vector3Int(v.x, y, v.z);
128 public static Vector3Int
WithZ(
this Vector3Int v,
int z = 0)
130 return new Vector3Int(v.x, v.y, z);
139 return new Vector3(v.x, v.y, v.z);
148 return new Vector2(v.x, v.y);
static Vector3Int WithZ(this Vector3Int v, int z=0)
Creates a new vector with the same value for the 'x' and 'y' parameter but a new one for the 'z'.
static Vector2Int WithY(this Vector2Int v, int y=0)
Creates a new vector with the same value for the 'x' parameter but a new one for the 'y'.
static Vector3Int WithX(this Vector3Int v, int x=0)
Creates a new vector with the same value for the 'y' and 'z' parameter but a new one for the 'x'.
static Vector2 ToVectorFloat(this Vector2Int v)
Creates a new Vector2 with the values in the original vector.
static Vector2Int Clone(this Vector2Int v)
Creates a new vector with the same values as the original.
static Vector3Int Clone(this Vector3Int v)
Creates a new vector with the same values as the original.
static Vector3Int ToVector3IntNewY(this Vector2Int v, int y=0)
Creates a new Vector3Int keeping the values from the 'x' and 'y' parameters of the original Vector2In...
static Vector3Int WithY(this Vector3Int v, int y=0)
Creates a new vector with the same value for the 'x' and 'z' parameter but a new one for the 'y'.
static Vector2Int ToVector2IntWithoutZ(this Vector3Int v)
Creates a new Vector2Int keeping the values from the 'x' and 'y' parameters of the original Vector3In...
static Vector2Int WithX(this Vector2Int v, int x=0)
Creates a new vector with the same value for the 'y' parameter but a new one for the 'x'.
static Vector3 ToVectorFloat(this Vector3Int v)
Creates a new Vector3 with the values in the original vector.
static Vector2Int ToVector2IntWithoutY(this Vector3Int v)
Creates a new Vector2Int keeping the values from the 'x' and 'z' parameters of the original Vector3In...
static Vector2Int ToVector2IntWithoutX(this Vector3Int v)
Creates a new Vector2Int keeping the values from the 'y' and 'z' parameters of the original Vector3In...
static Vector3Int ToVector3IntNewZ(this Vector2Int v, int z=0)
Creates a new Vector3Int keeping the values from the 'x' and 'y' parameters of the original Vector2In...
static Vector3Int ToVector3IntNewX(this Vector2Int v, int x=0)
Creates a new Vector3Int keeping the values from the 'x' and 'y' parameters of the original Vector2In...