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

Initializes a new instance of the XMFLOAT3X3 structure from a nine element float array.

Initializes a new instance of the XMFLOAT3X3 structure from a nine element float array.

Note  This constructor is only available under C++.
 

Syntax

void XMFLOAT3X3(
  const float *pArray
) noexcept;

Parameters

pArray

Address of a 9 element float array, specifying the value of each member of a new instance of XMFLOAT3X3.

Return value

None

Remarks

The matrix elements are stored in pArray in row-major order.

The following two pseudocode examples demonstrate the operation of this constructor:


   XMFLOAT3X3 mat;
   mat._11 = pArray[0];
   mat._12 = pArray[1];
   mat._13 = pArray[2];
   mat._21 = pArray[3];
   mat._22 = pArray[4];
   mat._23 = pArray[5];
   mat._31 = pArray[6];
   mat._32 = pArray[7];
   mat._33 = pArray[8];
    

Or


   XMFLOAT3X3 mat;
   mat.m[0,0] = pArray[0];
   mat.m[0,1] = pArray[1];
   mat.m[0,2] = pArray[2];
   mat.m[1,0] = pArray[3];
   mat.m[1,1] = pArray[4];
   mat.m[1,2] = pArray[5];
   mat.m[2,0] = pArray[6];
   mat.m[2,1] = pArray[7];
   mat.m[2,2] = pArray[8];
    

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h

See also

Reference

XMFLOAT3X3

XMFLOAT3X3 Constructors