Skip to content

Latest commit

 

History

History
106 lines (66 loc) · 2.34 KB

d3dxmatrixdecompose.md

File metadata and controls

106 lines (66 loc) · 2.34 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
D3DXMatrixDecompose function (D3dx9math.h) - Breaks down a general 3D transformation matrix into its scalar, rotational, and translational components.
73d3c248-1254-444e-9fd8-4f144424ddb7
D3DXMatrixDecompose function (D3dx9math.h)
reference
05/31/2018
APIRef
kbSyntax
D3DXMatrixDecompose
LibDef
d3dx9.lib
d3dx9.dll

D3DXMatrixDecompose function (D3dx9math.h)

Note

The D3DX utility library is deprecated. We recommend that you use DirectXMath instead.

Breaks down a general 3D transformation matrix into its scalar, rotational, and translational components.

Syntax

HRESULT D3DXMatrixDecompose(
  _Inout_       D3DXVECTOR3    *pOutScale,
  _Inout_       D3DXQUATERNION *pOutRotation,
  _Inout_       D3DXVECTOR3    *pOutTranslation,
  _In_    const D3DXMATRIX     *pM
);

Parameters

pOutScale [in, out]

Type: D3DXVECTOR3*

Pointer to the output D3DXVECTOR3 that contains scaling factors applied along the x, y, and z-axes.

pOutRotation [in, out]

Type: D3DXQUATERNION*

Pointer to the D3DXQUATERNION structure that describes the rotation.

pOutTranslation [in, out]

Type: D3DXVECTOR3*

Pointer to the D3DXVECTOR3 vector that describes the translation.

pM [in]

Type: const D3DXMATRIX*

Pointer to an input D3DXMATRIX matrix to decompose.

Return value

Type: HRESULT

If the function succeeds, the return value is S_OK. If the function fails, the return value can be the following: D3DERR_INVALIDCALL.

Requirements

Requirement Value
Header
D3dx9math.h
Library
D3dx9.lib

See also

Math Functions