Class VectorExtensions
- Namespace
- Stride.Core.Mathematics
- Assembly
- Stride.Core.Mathematics.dll
Extensions methods of the vector classes.
public static class VectorExtensions
- Inheritance
-
VectorExtensions
Methods
XY(Vector3)
Return the X/Y components of the vector.
public static Vector2 XY(this Vector3 vector)
Parameters
vector
Vector3the input vector
Returns
XY(Vector4)
Return the X/Y components of the vector.
public static Vector2 XY(this Vector4 vector)
Parameters
vector
Vector4the input vector
Returns
XYZ(Vector4)
Return the X/Y/Z components of the vector.
public static Vector3 XYZ(this Vector4 vector)
Parameters
vector
Vector4the input vector
Returns
XZ(Vector3)
Return the X/Z components of the vector.
public static Vector2 XZ(this Vector3 vector)
Parameters
vector
Vector3the input vector
Returns
YX(Vector2)
Return the Y/X components of the vector in the inverse order.
public static Vector2 YX(this Vector2 vector)
Parameters
vector
Vector2the input vector
Returns
YZ(Vector3)
Return the Y/Z components of the vector.
public static Vector2 YZ(this Vector3 vector)
Parameters
vector
Vector3the input vector