XMFLOAT3X4 structure (directxmath.h)

A 3x4 column-major matrix containing 32-bit floating-point components.

Note

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

Syntax

struct XMFLOAT3X4 {
  union {
    struct {
      float _11;
      float _12;
      float _13;
      float _14;
      float _21;
      float _22;
      float _23;
      float _24;
      float _31;
      float _32;
      float _33;
      float _34;
    };
    float m[3][4];
    float f[12];
  };
  void              XMFLOAT3X4();
  void              XMFLOAT3X4(
    const XMFLOAT3X4 & 
  );
  XMFLOAT3X4 &      operator=(
    const XMFLOAT3X4 & 
  );
  void              XMFLOAT3X4(
    XMFLOAT3X4 && 
  );
  XMFLOAT3X4 &      operator=(
    XMFLOAT3X4 && 
  );
  noexcept          XMFLOAT3X4(
    float m00,
    float m01,
    float m02,
    float m03,
    float m10,
    float m11,
    float m12,
    float m13,
    float m20,
    float m21,
    float m22,
    float m23
  );
  noexcept          XMFLOAT3X4(
    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.

_14

An element of the matrix.

_21

An element of the matrix.

_22

An element of the matrix.

_23

An element of the matrix.

_24

An element of the matrix.

_31

An element of the matrix.

_32

An element of the matrix.

_33

An element of the matrix.

_34

An element of the matrix.

m

A 3x4 array representing the matrix.

f

A 12-element (3*4) array representing the matrix.

void XMFLOAT3X4()

Default constructor for XMFLOAT3X4.

void XMFLOAT3X4( const XMFLOAT3X4 & )

Copy constructor for XMFLOAT3X4.

XMFLOAT3X4 & operator=( const XMFLOAT3X4 & )

Copy assignment operator for XMFLOAT3X4. Copies the argument's vector component data into the current instance of XMFLOAT3X4.

void XMFLOAT3X4( XMFLOAT3X4 && )

Move constructor for XMFLOAT3X4.

XMFLOAT3X4 & operator=( XMFLOAT3X4 && )

Move assignment operator for XMFLOAT3X4. Moves the argument's vector component data into the current instance of XMFLOAT3X4.

noexcept XMFLOAT3X4( float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23)

Constructs an XMFLOAT3X4 from 12 scalar float values.

noexcept XMFLOAT3X4( const float *pArray)

Constructs an XMFLOAT3X4 from a 12-element array of float values.

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

Returns a copy of a matrix element of an XMFLOAT3X4, specified by row and column arguments.

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

Returns a reference to a matrix element of an XMFLOAT3X4, specified by row and column arguments.

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 4).

The member m is a 2-dimensional 3x4 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 3.

You can load an XMMATRIX from an XMFLOAT3X4 by using XMLoadFloat3x4.

You can store an XMMATRIX into an XMFLOAT3X4 by using XMStoreFloat3x4.

This type and the associated functions were added in DirectXMath 3.13

Requirements

   
Header directxmath.h

See also

DirectXMath Library structures