D3DXMATRIX
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXMATRIX Structure


Describes a matrix.

Syntax

typedef struct D3DXMATRIX { 
    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 );
} D3DXMATRIX;

Members

_ij
The (i, j) component of the matrix, where i is the row number and j is the column number. For example, _34 means the same as [a34], the component in the third row and fourth column.

Remarks

This structure inherits members from the D3DMATRIX structure. C programmers cannot use the D3DXMATRIX structure. They must use the D3DMATRIX structure.

In D3DX, the _34 element of a projection matrix cannot be a negative number. If your application needs to use a negative value in this location, it should scale the entire projection matrix by -1 instead.

C++ programmers can take advantage of operator overloading and type casting with the D3DXMATRIX Extensions, which implement overloaded constructors and assignment, unary, and binary (including equality) operators.

Structure Information

Headerd3dx9math.h
Minimum operating systems Windows 98

See Also

D3DMATRIX, Matrix Transforms


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.