[][src]Function directx_math::XMMatrixInverse

pub fn XMMatrixInverse(
    pDeterminant: Option<&mut XMVECTOR>,
    M: FXMMATRIX
) -> XMMATRIX

Computes the inverse of a matrix.

Parameters

pDeterminant Address of a vector, each of whose components receives the determinant of M. This parameter may be None if the determinant is not desired.

M Matrix to invert.

Return value

Returns the matrix inverse of M. If there is no inverse (that is, if the determinant is 0), XMMatrixInverse returns an infinite matrix.

Reference

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