XMFLOAT3X3 union

A 3*3 floating point matrix.

For a list of additional functionality such as constructors and operators that are available using XMFLOAT3X3 when you are programming in C++, see XMFLOAT3X3 Extensions.

Note  See DirectXMath Library Type Equivalences for information about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.

Syntax


union XMFLOAT3X3 {
  union {
    struct {
      float _11;
      float _12;
      float _13;
      float _21;
      float _22;
      float _23;
      float _31;
      float _32;
      float _33;
    };
    float m[3][3];
  };
};

Members

_11

An element of the matrix.

_12

An element of the matrix.

_13

An element of the matrix.

_21

An element of the matrix.

_22

An element of the matrix.

_23

An element of the matrix.

_31

An element of the matrix.

_32

An element of the matrix.

_33

An element of the matrix.

m

A 3*3 array representing the matrix.

Remarks

Scalar members of XMFLOAT3X3 are of the form _RowCol, and provide one based indexing, where Row specifies the one's based matrix row (running from 1 to 3), and Col specifies the one's based matrix column (running from 1 to 3).

The two dimensional 3*3 array member of XMFLOAT3X3, m, provides zero based indexing of the structure's matrix. When accessing XMFLOAT3X3m[Row,Col], Row can run from 0 to 2 and Col can run from 0 to 2.

XMFLOAT3X3 can be loaded into instances of XMVECTOR by using XMLoadFloat3x3.

Instances of XMVECTOR can be stored into an instance of XMFLOAT3X3 with XMStoreFloat3x3.

Namespace: Use DirectX

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Header

DirectXMath.h

See also

XMFLOAT3X3 Extensions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.