XMSHORTN4::XMSHORTN4(constint16_t*) function (directxpackedvector.h)

Initializes a new instance of XMSHORTN4 from a four element int16_t array argument.

This constructor initializes a new instance of XMSHORTN4 from a four element int16_t array argument.

Note  This constructor is only available under C++.

Syntax

void XMSHORTN4(
  const int16_t *pArray
) noexcept;

Parameters

pArray

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

Return value

None

Remarks

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

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

Requirements

   
Target Platform Windows
Header directxpackedvector.h

See also

XMSHORTN4

XMSHORTN4 Constructors