Redigeeri

Jagamisviis:


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.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector4 AsVector4(System::Numerics::Vector2 value);
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Vector2 value);
static member AsVector4 : System.Numerics.Vector2 -> System.Numerics.Vector4
<Extension()>
Public Function AsVector4 (value As Vector2) As Vector4

Parameters

value
Vector2

The vector to reinterpret.

Returns

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

Applies to

AsVector4(Vector3)

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector4 AsVector4(System::Numerics::Vector3 value);
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Vector3 value);
static member AsVector4 : System.Numerics.Vector3 -> System.Numerics.Vector4
<Extension()>
Public Function AsVector4 (value As Vector3) As Vector4

Parameters

value
Vector3

The vector to convert.

Returns

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

Applies to

AsVector4(Plane)

Reinterprets a Plane as a new Vector4.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector4 AsVector4(System::Numerics::Plane value);
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Plane value);
static member AsVector4 : System.Numerics.Plane -> System.Numerics.Vector4
<Extension()>
Public Function AsVector4 (value As Plane) As Vector4

Parameters

value
Plane

The plane to reinterpret.

Returns

value reinterpreted as a new Vector4.

Applies to

AsVector4(Quaternion)

Reinterprets a Quaternion as a new Vector4.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Vector4 AsVector4(System::Numerics::Quaternion value);
public static System.Numerics.Vector4 AsVector4 (this System.Numerics.Quaternion value);
static member AsVector4 : System.Numerics.Quaternion -> System.Numerics.Vector4
<Extension()>
Public Function AsVector4 (value As Quaternion) As Vector4

Parameters

value
Quaternion

The quaternion to reinterpret.

Returns

value reinterpreted as a new Quaternion.

Applies to