Click to Rate and Give Feedback
MSDN
MSDN Library
DirectX
SDK Documentation
DirectX Graphics
Direct3D 9
Reference
D3DX Reference
Functions
Math Functions
 D3DXMatrixIdentity

  Switch on low bandwidth view
D3DXMatrixIdentity
Bb205339.XDK_CHM_BANNER_left(en-us,VS.85).jpgBb205339.XDK_CHM_BANNER_right(en-us,VS.85).jpg

D3DXMatrixIdentity

Creates an identity matrix.

D3DXMATRIX * D3DXMatrixIdentity(
  D3DXMATRIX * pOut
);

Parameters

pOut
[in, out] Pointer to the D3DXMATRIX structure that is the result of the operation.

Return Values

Pointer to a D3DXMATRIX structure that is the identity matrix.

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 x4 matrix.

The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixIdentity function can be used as a parameter for another function.

Requirements

Header: Declared in D3dx9math.h.

Library: Use D3dx9.lib.

See Also

D3DXMatrixIsIdentity

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker