D3DXMAMATRIXDEC MOMPOSE function
Decompose a 3D transform matrix as a scaling coefficient, rotation component, and a poll.
definition:
HRESULT WINAPI D3DXMATRIXDECompose
D3DXVECTOR3 * Poutscale,
D3DXQUATERNION * POUTROTION,
D3DXVector3 * Pouttranslation,
Const D3DXMatrix * PM
);
parameter:
Poutscale
[IN, OUT] points to the D3DXVECTOR3 structure, which contains the zoom coefficient along the X, Y, and Z-axis.
Poutrotation
[in, out] points to the D3DxQuaterNion structure rotation variable.
Pouttranslation
[in, out] Points to D3DXVector3.
pm
[in] The matrix to which the D3DXMatrix structure is decomposed.
return value:
If the function runs successfully returns S_OK.
If it fails, it returns the value below:
D3DERR_INVALIDCALL
Function calls illegally, such as parameters are wrong.
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98