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 & unnamedParam1
  );
  XMFLOAT3X4 & operator=(
    const XMFLOAT3X4 & unnamedParam1
  );
  void         XMFLOAT3X4(
    XMFLOAT3X4 && unnamedParam1
  );
  XMFLOAT3X4 & operator=(
    XMFLOAT3X4 && unnamedParam1
  );
  void         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;
  void         XMFLOAT3X4(
    const float *pArray
  ) noexcept;
  float        operator()(
    size_t Row,
    size_t Column
  ) noexcept;
  float &      operator()(
    size_t Row,
    size_t Column
  ) noexcept;
  bool         operator==(
    const XMFLOAT3X4 & unnamedParam1
  );
  auto         operator<=>(
    const XMFLOAT3X4 & unnamedParam1
  );
};

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[3]

A 3x4 array representing the matrix.

f[12]

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

void XMFLOAT3X4()

Default constructor for XMFLOAT3X4.

void XMFLOAT3X4( const XMFLOAT3X4 & unnamedParam1)

Copy constructor for XMFLOAT3X4.

XMFLOAT3X4 & operator=( const XMFLOAT3X4 & unnamedParam1)

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

void XMFLOAT3X4( XMFLOAT3X4 && unnamedParam1)

Move constructor for XMFLOAT3X4.

XMFLOAT3X4 & operator=( XMFLOAT3X4 && unnamedParam1)

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

void 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

Constructs an XMFLOAT3X4 from 12 scalar float values.

void XMFLOAT3X4( const float *pArray) noexcept

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

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

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

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

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

bool operator==( const XMFLOAT3X4 & unnamedParam1)

auto operator<=>( const XMFLOAT3X4 & unnamedParam1)

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

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header directxmath.h

See also

DirectXMath Library structures