|
static Vector3 | NullZ (this Vector3 vector) |
| Returns a copy of the given Vector3 with the Z component set to 0.
|
|
static Vector3 | WithX (this Vector3 vector, float x) |
| Creates a new Vector3 with the specified X component, retaining the original Y and Z components.
|
|
static Vector3 | WithY (this Vector3 vector, float y) |
| Creates a new Vector3 with the specified Y component, retaining the original X and Z components.
|
|
static Vector3 | WithZ (this Vector3 vector, float z) |
| Creates a new Vector3 with the specified Z component, retaining the original X and Y components.
|
|
static Vector3 | With (this Vector3 vector, float? x=null, float? y=null, float? z=null) |
| Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
|
|
static Vector3Int | WithX (this Vector3Int vector, int x) |
| Creates a new Vector3Int with the specified X component, retaining the original Y and Z components.
|
|
static Vector3Int | WithY (this Vector3Int vector, int y) |
| Creates a new Vector3Int with the specified Y component, retaining the original X and Z components.
|
|
static Vector3Int | WithZ (this Vector3Int vector, int z) |
| Creates a new Vector3Int with the specified Z component, retaining the original X and Y components.
|
|
static Vector3Int | With (this Vector3Int vector, int? x=null, int? y=null, int? z=null) |
| Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
|
|
static Vector2 | WithX (this Vector2 vector, float x) |
| Creates a new Vector2 with the specified X component, retaining the original Y component.
|
|
static Vector2 | WithY (this Vector2 vector, float y) |
| Creates a new Vector2 with the specified Y component, retaining the original X component.
|
|
static Vector3 | WithZ3D (this Vector2 vector, float z) |
| Creates a new Vector3 with the specified Z component, retaining the original X and Y components.
|
|
static Vector2 | With (this Vector2 vector, float? x=null, float? y=null) |
| Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
|
|
static Vector3 | With3D (this Vector2 vector, float? x=null, float? y=null, float z=0) |
| Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
|
|
static Vector2Int | WithX (this Vector2Int vector, int x) |
| Creates a new Vector2Int with the specified X component, retaining the original Y component.
|
|
static Vector2Int | WithY (this Vector2Int vector, int y) |
| Creates a new Vector2Int with the specified Y component, retaining the original X component.
|
|
static Vector3Int | WithZ3D (this Vector2Int vector, int z) |
| Creates a new Vector3Int with the specified Y component, retaining the original X component.
|
|
static Vector2Int | With (this Vector2Int vector, int? x=null, int? y=null) |
| Creates a new Vector3 with the specified components, leaving the unspecified ones as they were.
|
|
static void | SetX (this ref Vector3 vector, float x) |
| Sets the X component of the Vector3.
|
|
static void | SetY (this ref Vector3 vector, float y) |
| Sets the Y component of the Vector3.
|
|
static void | SetZ (this ref Vector3 vector, float z) |
| Sets the Z component of the Vector3.
|
|
static void | Set (this ref Vector3 vector, float? x=null, float? y=null, float? z=null) |
| Sets the specified components of the Vector3, leaving the unspecified ones as they were.
|
|
static void | SetX (this ref Vector3Int vector, int x) |
| Sets the X component of the Vector3Int.
|
|
static void | SetY (this ref Vector3Int vector, int y) |
| Sets the Y component of the Vector3Int.
|
|
static void | SetZ (this ref Vector3Int vector, int z) |
| Sets the Z component of the Vector3Int.
|
|
static void | Set (this ref Vector3Int vector, int? x=null, int? y=null, int? z=null) |
| Sets the specified components of the Vector3Int, leaving the unspecified ones as they were.
|
|
static void | SetX (this ref Vector2 vector, float x) |
| Sets the X component of the Vector2.
|
|
static void | SetY (this ref Vector2 vector, float y) |
| Sets the Y component of the Vector2.
|
|
static void | Set (this ref Vector2 vector, float? x=null, float? y=null) |
| Sets the specified components of the Vector2, leaving the unspecified ones as they were.
|
|
static void | SetX (this ref Vector2Int vector, int x) |
| Sets the X component of the Vector2Int.
|
|
static void | SetY (this ref Vector2Int vector, int y) |
| Sets the Y component of the Vector2Int.
|
|
static void | Set (this ref Vector2Int vector, int? x=null, int? y=null) |
| Sets the specified components of the Vector2, leaving the unspecified ones as they were.
|
|
Class for axis operations for all types of vectors.