Table of Contents

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 Vector3

the input vector

Returns

Vector2

XY(Vector4)

Return the X/Y components of the vector.

public static Vector2 XY(this Vector4 vector)

Parameters

vector Vector4

the input vector

Returns

Vector2

XYZ(Vector4)

Return the X/Y/Z components of the vector.

public static Vector3 XYZ(this Vector4 vector)

Parameters

vector Vector4

the input vector

Returns

Vector3

XZ(Vector3)

Return the X/Z components of the vector.

public static Vector2 XZ(this Vector3 vector)

Parameters

vector Vector3

the input vector

Returns

Vector2

YX(Vector2)

Return the Y/X components of the vector in the inverse order.

public static Vector2 YX(this Vector2 vector)

Parameters

vector Vector2

the input vector

Returns

Vector2

YZ(Vector3)

Return the Y/Z components of the vector.

public static Vector2 YZ(this Vector3 vector)

Parameters

vector Vector3

the input vector

Returns

Vector2