XMFLOAT3X3 structure (directxmath.h)

A 3x3 floating-point matrix.

Note

See Library internals for info about equivalent D3DDECLTYPE, D3DFORMAT, and DXGI_FORMAT objects.

Syntax

struct 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];
  };
  void              XMFLOAT3X3();
  void              XMFLOAT3X3(
    const XMFLOAT3X3 & 
  );
  XMFLOAT3X3 &      operator=(
    const XMFLOAT3X3 & 
  );
  void              XMFLOAT3X3(
    XMFLOAT3X3 && 
  );
  XMFLOAT3X3 &      operator=(
    XMFLOAT3X3 && 
  );
  noexcept          XMFLOAT3X3(
    float m00,
    float m01,
    float m02,
    float m10,
    float m11,
    float m12,
    float m20,
    float m21,
    float m22
  );
  noexcept          XMFLOAT3X3(
    const float *pArray
  );
  float  noexcept   operator()(
    size_t Row,
    size_t Column
  );
  float &  noexcept operator()(
    size_t Row,
    size_t Column
  );
};

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 2-dimensional 3x3 array representing the matrix.

void XMFLOAT3X3()

Default constructor for XMFLOAT3X3

Default constructor for XMFLOAT3X3

Note  This is only available for C++ based development.
 

void XMFLOAT3X3( const XMFLOAT3X3 & )

Default constructor for XMFLOAT3X3

Default constructor for XMFLOAT3X3

Note  This is only available for C++ based development.
 

XMFLOAT3X3 & operator=( const XMFLOAT3X3 & )

Assigns the vector component data from one instance of XMFLOAT3X3 to the current instance of XMFLOAT3X3.

This operator assigns the vector component data from one instance of XMFLOAT3X3 to the current instance of XMFLOAT3X3.

Note  This operator is only available under C++.

void XMFLOAT3X3( XMFLOAT3X3 && )

Default constructor for XMFLOAT3X3

Default constructor for XMFLOAT3X3

Note  This is only available for C++ based development.
 

XMFLOAT3X3 & operator=( XMFLOAT3X3 && )

noexcept XMFLOAT3X3( float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)

Initializes a new instance of the XMFLOAT3X3 structure from nine scalar float values.

Initializes a new instance of the XMFLOAT3X3 structure from nine scalar float values.

Note  This constructor is only available under C++.
 

noexcept XMFLOAT3X3( const float *pArray)

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++.
 

float noexcept operator()( size_t Row, size_t Column)

float & noexcept operator()( size_t Row, size_t Column)

Returns a reference to a matrix element of an instance XMFLOAT3X3 as specified by row and column arguments.

This operator returns a reference to a matrix element of an instance XMFLOAT3X3 as specified by row and column arguments.

Note  This operator is only available under C++.
 

Remarks

The scalar members of XMFLOAT3X3 have names that follow the form _<row_number><column_number> (for example, _11). They provide 1-based indexing, where row_number specifies the 1-based matrix row (ranging from 1 to 3), and column_number specifies the 1-based matrix column (ranging from 1 to 3).

The member m is a 2-dimensional 3x3 array. It provides 0-based indexing of the structure's matrix. When accessing m[<row_index>, <column_index>], <row_index> ranges from 0 to 2, and <column_index> ranges from 0 to 2.

You can load an XMMATRIX from an XMFLOAT3X3 by using XMLoadFloat3x3.

You can store an XMMATRIX into an XMFLOAT3X3 by using XMStoreFloat3x3.

Requirements

   
Header directxmath.h

See also

DirectXMath Library structures