Function directx_math::XMMatrixDecompose[][src]

pub fn XMMatrixDecompose(
    outScale: &mut XMVECTOR,
    outRotQuat: &mut XMVECTOR,
    outTrans: &mut XMVECTOR,
    M: FXMMATRIX
) -> bool

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

Parameters

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

outRotQuat Pointer to the XMVECTOR quaternion that describes the rotation.

outTrans Pointer to the XMVECTOR vector that describes a translation along the x, y, and z-axes.

M Pointer to an input XMMATRIX matrix to decompose.

Return value

If the function succeeds, the return value is true. If the function fails, the return value is false.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMMatrixDecompose