Vector.AsVector4Unsafe Method

Definition

Overloads

AsVector4Unsafe(Vector2)

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

AsVector4Unsafe(Vector3)

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

AsVector4Unsafe(Vector2)

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

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

Parameters

value
Vector2

The vector to reinterpret.

Returns

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

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10

AsVector4Unsafe(Vector3)

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

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

Parameters

value
Vector3

The vector to convert.

Returns

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

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10