invert

fun invert(eps: Float = 0.0f): Mat4

Invert the matrix. Stores the result in this matrix.

Return

this matrix

Parameters

eps

the value to check when checking if the matrix is singular.

Throws

if the matrix is singular (not invertible)


fun invert(result: Mat4, eps: Float = 0.0f): Mat4

Invert the matrix. Stores the result in the specified Mat4.

Return

this matrix

Parameters

result

the matrix to store the result

eps

the value to check when checking if the matrix is singular.

Throws

if the matrix is singular (not invertible)