XMFLOAT4X4 structure (directxmath.h)

A 4*4 floating point matrix.

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

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

Syntax

struct XMFLOAT4X4 {
  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 _41;
      float _42;
      float _43;
      float _44;
    };
    float m[4][4];
  };
  void         XMFLOAT4X4();
  void         XMFLOAT4X4(
    const XMFLOAT4X4 & unnamedParam1
  );
  XMFLOAT4X4 & operator=(
    const XMFLOAT4X4 & unnamedParam1
  );
  void         XMFLOAT4X4(
    XMFLOAT4X4 && unnamedParam1
  );
  XMFLOAT4X4 & operator=(
    XMFLOAT4X4 && unnamedParam1
  );
  void         XMFLOAT4X4(
    float m00,
    float m01,
    float m02,
    float m03,
    float m10,
    float m11,
    float m12,
    float m13,
    float m20,
    float m21,
    float m22,
    float m23,
    float m30,
    float m31,
    float m32,
    float m33
  ) noexcept;
  void         XMFLOAT4X4(
    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 XMFLOAT4X4 & unnamedParam1
  );
  auto         operator<=>(
    const XMFLOAT4X4 & 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.

_41

An element of the matrix.

_42

An element of the matrix.

_43

An element of the matrix.

_44

An element of the matrix.

m[4]

A 4*4 array representing the matrix.

void XMFLOAT4X4()

Default constructor for XMFLOAT4X4

Default constructor for XMFLOAT4X4

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

void XMFLOAT4X4( const XMFLOAT4X4 & unnamedParam1)

Default constructor for XMFLOAT4X4

Default constructor for XMFLOAT4X4

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

XMFLOAT4X4 & operator=( const XMFLOAT4X4 & unnamedParam1)

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

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

Note

This operator is available only under C++.

void XMFLOAT4X4( XMFLOAT4X4 && unnamedParam1)

Default constructor for XMFLOAT4X4

Default constructor for XMFLOAT4X4

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

XMFLOAT4X4 & operator=( XMFLOAT4X4 && unnamedParam1)

void XMFLOAT4X4( float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33) noexcept

Initializes a new instance of the XMFLOAT4X4 structure from sixteen scalar float values.

Initializes a new instance of the XMFLOAT4X4 structure from sixteen scalar float values.

Note  This constructor is only available under C++.
 

void XMFLOAT4X4( const float *pArray) noexcept

Initializes a new instance of the XMFLOAT4X4 structure from a sixteen element float array.

Initializes a new instance of the XMFLOAT4X4 structure from a sixteen element float array.

Note  This constructor is only available under C++.
 

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

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

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

Note  This operator is only available under C++.
 

bool operator==( const XMFLOAT4X4 & unnamedParam1)

auto operator<=>( const XMFLOAT4X4 & unnamedParam1)

Remarks

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

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

XMFLOAT4X4 can be loaded into instances of XMVECTOR by using XMLoadFloat4x4.

Instances of XMVECTOR can be stored into an instance of XMFLOAT4X4 with XMStoreFloat4x4.

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

Requirement Value
Header directxmath.h

See also

DirectXMath Library Structures

XMFLOAT4X4 Extensions

XMMATRIX