XMUSHORTN2::XMUSHORTN2(constuint16_t*) function (directxpackedvector.h)

Initializes a new instance of XMUSHORTN2 from a two element uint16_t array argument.

This constructor initializes a new instance of XMUSHORTN2 from a from a two element uint16_t array argument.

Note  This constructor is only available under C++.

Syntax

void XMUSHORTN2(
  const uint16_t *pArray
) noexcept;

Parameters

pArray

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

Return value

None

Remarks

Input values are not normalized. The following pseudocode demonstrates the operation of this constructor:

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

Requirements

Requirement Value
Target Platform Windows
Header directxpackedvector.h

See also

XMUSHORTN2

XMUSHORTN2 Constructors