Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

XMFLOAT2::XMFLOAT2(constfloat*) function (directxmath.h)

Initializes a new instance of XMFLOAT2 from a two element float array argument.

This constructor initializes a new instance of XMFLOAT2 from a from a two element float array argument.

Note  This constructor is only available under C++.

Syntax

void XMFLOAT2(
 const float *pArray
) noexcept;

Parameters

pArray

Two element float array containing the values used to initialize the two components of a new instance of XMFLOAT2.

Return value

None

Remarks


	XMFLOAT2 instance;
	instance.x = pArray[0];
	instance.y = pArray[1];
	instance.z = pArray[2];
	instance.w = pArray[3];

 

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h

See also

Reference

XMFLOAT2

XMFLOAT2 Constructors


Feedback

Was this page helpful?

Additional resources