inverse

fun inverse(matrix: Matrix4, result: Matrix4): Matrix4(source)

Computes the inverse of the provided matrix using Cramers Rule. If the determinant is zero, the matrix can not be inverted, and an exception is thrown. If the matrix is a proper rigid transformation, it is more efficient to invert it with Matrix4.inverseTransformation.

Return

The modified result parameter.

Parameters

matrix

The matrix to invert.

result

The object onto which to store the result.

See also