Describes a 4D vector consisting of four single-precision floating-point values.
For a list of additional functionality such as constructors and operators that are available using XMFLOAT4 when you are programming in C++, see XMFLOAT4 Extensions.
Note
See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.
| Name | Description |
|---|---|
| XMFLOAT4 () | Default constructor for XMFLOAT4. Default constructor for XMFLOAT4. Note This constructor is only available under C++. |
| XMFLOAT4 (const float*) | Initializes a new instance of XMFLOAT4 from a four element float array argument. This constructor initializes a new instance of XMFLOAT4 from a from a four element float array argument. Note This constructor is only available under C++. |
| XMFLOAT4 (float, float, float, float) | Initializes a new instance of XMFLOAT4 from four float arguments. This constructor initializes a new instance of XMFLOAT4 from four float arguments. Note This constructor is only available under C++. |
XMFLOAT4 can be loaded into instances of XMVECTOR by using XMLoadFloat4.
Instances of XMVECTOR can be stored into an instance of XMFLOAT4 with XMStoreFloat4.
Namespace: Use DirectX