DarkBASIC Professional Help File

DX11 GET MATRIX INVERSE WITHOUT DETERMINANT

Computes the inverse of the given matrix.
This function will not return the determinant of the inversed matrix but rather the resultMatrix parameter (to which the
inversed matrix has been copied), or a temporary matrix if no result parameter was provided, thus allowing this
function to be used in chains with other 3D math functions.

Syntax

    Return Dword = DX11 GET MATRIX INVERSE WITHOUT DETERMINANT(sourceMatrix, [resultMatrix])

Parameters

    sourceMatrix

> Dword
> The matrix to compute the inverse of.

    [Optional] resultMatrix

> Dword
> The matrix to write the inverse of the source matrix to. Can be omitted in favor of creating a temporary result matrix instead.

Returns

The resulting matrix (the inverse of sourceMatrix, or an infinite matrix if the source matrix is not invertible); either the resultMatrix argument unless omitted, or a temporary matrix. .

See also

MATH Functions Menu
DX11 Function Categories