XMHALF2::XMHALF2(constHALF*) function (directxpackedvector.h)

Initializes a new instance of XMHALF2 from a two element HALF array argument.

This constructor initializes a new instance of XMHALF2 from a two element HALF array argument.

Note  This constructor is only available under C++.

Syntax

void XMHALF2(
  const HALF *pArray
) noexcept;

Parameters

pArray

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

Return value

None

Remarks

The following pseudocode demonstrates the operation of this constructor:

XMHALF2 instance;
instance.x = pArray[0];
instance.y = pArray[1];

Requirements

Requirement Value
Target Platform Windows
Header directxpackedvector.h

See also

XMHALF2

XMHALF2 Constructors