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++.
public:
XMFLOAT4(
const float *pArray
)
pArray
Type: floatĀ *
[in]
Four element float array containing the values used to initialize the four components of a new instance of XMFLOAT4.
The following pseudocode demonstrates the operation of this constructor:
XMFLOAT4 instance;
instance.x = pArray[0];
instance.y = pArray[1];
instance.z = pArray[2];
instance.w = pArray[3];
Header: Declared in directxmath.h.