This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
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.
| Name | Description |
|---|---|
| Create(Single, Single, Single, Single) | Creates a vector whose elements have the specified values. |
| Create(ReadOnlySpan<Single>) | Constructs a vector from the givenReadOnlySpan<T>. The span must contain at least 4 elements. |
| Create(Single) | Creates a newVector4 object whose four elements have the same value. |
| Create(Vector3, Single) | Constructs a newVector4 object from the specifiedVector3 object and a W component. |
| Create(Vector2, Single, Single) | Creates a newVector4 object from the specifiedVector2 object and a Z and a W component. |
Creates a vector whose elements have the specified values.
public: static System::Numerics::Vector4 Create(float x, float y, float z, float w);public static System.Numerics.Vector4 Create(float x, float y, float z, float w);static member Create : single * single * single * single -> System.Numerics.Vector4Public Shared Function Create (x As Single, y As Single, z As Single, w As Single) As Vector4A newVector4 whose elements have the specified values.
Constructs a vector from the givenReadOnlySpan<T>. The span must contain at least 4 elements.
public: static System::Numerics::Vector4 Create(ReadOnlySpan<float> values);public static System.Numerics.Vector4 Create(ReadOnlySpan<float> values);static member Create : ReadOnlySpan<single> -> System.Numerics.Vector4Public Shared Function Create (values As ReadOnlySpan(Of Single)) As Vector4The span of elements to assign to the vector.
A newVector4 whose elements have the specified values.
Creates a newVector4 object whose four elements have the same value.
public: static System::Numerics::Vector4 Create(float value);public static System.Numerics.Vector4 Create(float value);static member Create : single -> System.Numerics.Vector4Public Shared Function Create (value As Single) As Vector4The value to assign to all four elements.
A newVector4 whose four elements have the same value.
public: static System::Numerics::Vector4 Create(System::Numerics::Vector3 vector, float w);public static System.Numerics.Vector4 Create(System.Numerics.Vector3 vector, float w);static member Create : System.Numerics.Vector3 * single -> System.Numerics.Vector4Public Shared Function Create (vector As Vector3, w As Single) As Vector4The vector to use for the X, Y, and Z components.
The W component.
A newVector4 from the specifiedVector3 object and a W component.
public: static System::Numerics::Vector4 Create(System::Numerics::Vector2 vector, float z, float w);public static System.Numerics.Vector4 Create(System.Numerics.Vector2 vector, float z, float w);static member Create : System.Numerics.Vector2 * single * single -> System.Numerics.Vector4Public Shared Function Create (vector As Vector2, z As Single, w As Single) As Vector4The vector to use for the X and Y components.
The Z component.
The W component.
A newVector4 from the specifiedVector2 object and a Z and a W component.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?