DirectX SDK

DirectX7.IdentityMatrix

The DirectX7.IdentityMatrix method creates an identity matrix.

object.IdentityMatrix(mDest As D3DMATRIX)

Parameters

object
Object expression that resolves to a DirectX7 object.
mDest
D3DMATRIX type that is the result of the operation.

Error Codes

If the method fails, an error is raised and Err.Number is set.

Remarks

The identity matrix is a matrix in which all coefficients are 0 except the [1,1][2,2][3,3][4,4] coefficients, which are set to 1. The identity matrix is special in that when it is applied to vertices, they are unchanged. The identity matrix is used as the starting point for matrices that will modify vertex values to create rotations, translations, and any other transformations that can be represented by a 4×4 matrix.