invertMatrix

Inverts the specified matrix and stores the result in this matrix.
This throws an exception if the specified matrix is singular.
The result of this method is undefined if this matrix is passed in as the matrix to invert.

Return

this matrix set to the inverse of the specified matrix

Parameters

matrix

the matrix whose inverse is computed

Throws

If the matrix cannot be inverted