Vector.AsVector4 Method

Definition

Overloads

AsVector4(Vector2)

Reinterprets a Vector2 to a new Vector4 with the new elements zeroed.

AsVector4(Vector3)

Converts a Vector3 to a new Vector4 with the new elements zeroed.

AsVector4(Plane)

Reinterprets a Plane as a new Vector4.

AsVector4(Quaternion)

Reinterprets a Quaternion as a new Vector4.

AsVector4(Vector2)

Reinterprets a Vector2 to a new Vector4 with the new elements zeroed.

C#
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Vector2 value);

Parameters

value
Vector2

The vector to reinterpret.

Returns

value reinterpreted to a new Vector4 with the new elements zeroed.

Applies to

.NET 9
Product Versions
.NET 9

AsVector4(Vector3)

Converts a Vector3 to a new Vector4 with the new elements zeroed.

C#
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Vector3 value);

Parameters

value
Vector3

The vector to convert.

Returns

value converted to a new Vector4 with the new elements zeroed.

Applies to

.NET 9
Product Versions
.NET 9

AsVector4(Plane)

Reinterprets a Plane as a new Vector4.

C#
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Plane value);

Parameters

value
Plane

The plane to reinterpret.

Returns

value reinterpreted as a new Vector4.

Applies to

.NET 9
Product Versions
.NET 9

AsVector4(Quaternion)

Reinterprets a Quaternion as a new Vector4.

C#
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Quaternion value);

Parameters

value
Quaternion

The quaternion to reinterpret.

Returns

value reinterpreted as a new Quaternion.

Applies to

.NET 9
Product Versions
.NET 9