Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Computes the inverse of a matrix.
Syntax
XMMATRIX XM_CALLCONV XMMatrixInverse(
[out, optional] XMVECTOR *pDeterminant,
[in] FXMMATRIX M
) noexcept;
Parameters
[out, optional] pDeterminant
Address of a vector, each of whose components receives the determinant of M. This parameter can be nullptr if the determinant is not desired.
[in] 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.
Remarks
Platform Requirements
Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxmath.h |