Microsoft DirectX 8.0 (C++) |
Matrices in Microsoft® Direct3D® are represented by a 4´4 homogeneous matrix, defined by the D3DMATRIX structure.
The Direct3DX utility library implementation of the D3DMATRIX structure (D3DXMATRIX) implements a parentheses ("()") operator. This operator offers convenient access to values in the matrix for C++ programmers. Instead of having to refer to the structure members by name, you can refer to them by row and column number and index the numbers as needed. These indices are zero-based, so, for example, the element in the third row, second column would be M(2, 1).
You need a basic knowledge of matrices to work with Direct3D. For more information, see 3-D Transformations.