VectorExtensions Class
Namespace: Stride.Core.MathematicsAssembly: Stride.Core.Mathematics.dll
Extensions methods of the vector classes.
System.Object →
VectorExtensions
Derived from VectorExtensions:
public static class VectorExtensions
Name | Description | |
---|---|---|
Methods | ||
XY(Vector3) | Return the X/Y components of the vector. |
|
XY(Vector4) | Return the X/Y components of the vector. |
|
XYZ(Vector4) | Return the X/Y/Z components of the vector. |
|
XZ(Vector3) | Return the X/Z components of the vector. |
|
YX(Vector2) | Return the Y/X components of the vector in the inverse order. |
|
YZ(Vector3) | Return the Y/Z components of the vector. |
Methods
XY(Vector3)
Return the X/Y components of the vector.
public static Vector2 XY(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | the input vector |
Returns
Type | Description |
---|---|
Vector2 |
XY(Vector4)
Return the X/Y components of the vector.
public static Vector2 XY(this Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | vector | the input vector |
Returns
Type | Description |
---|---|
Vector2 |
XYZ(Vector4)
Return the X/Y/Z components of the vector.
public static Vector3 XYZ(this Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | vector | the input vector |
Returns
Type | Description |
---|---|
Vector3 |
XZ(Vector3)
Return the X/Z components of the vector.
public static Vector2 XZ(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | the input vector |
Returns
Type | Description |
---|---|
Vector2 |
YX(Vector2)
Return the Y/X components of the vector in the inverse order.
public static Vector2 YX(this Vector2 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | vector | the input vector |
Returns
Type | Description |
---|---|
Vector2 |
YZ(Vector3)
Return the Y/Z components of the vector.
public static Vector2 YZ(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | the input vector |
Returns
Type | Description |
---|---|
Vector2 |