Vector.AsVector4 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |
AsVector4(Quaternion) |
Reinterprets a Quaternion as a new Vector4. |
AsVector4(Vector2)
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)
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)
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
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про