XMFLOAT4 Constructor (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++.

Syntax

public:
XMFLOAT4(
         const float *pArray
)  

Parameters

pArray
Type: floatĀ *

[in]

Four element float array containing the values used to initialize the four components of a new instance of XMFLOAT4.

Remarks

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];  

Requirements

Header: Declared in directxmath.h.