mat_inverse(float* matrix1, float* matrix2)

Copies the inverse of matrix2 to matrix1.

Parameters:

matrix1 - target matrix (inverse source matrix)
matrix2 - source matrix

Remarks:

The inverse of a matrix, multiplied by the matrix itself, results in the identity matrix. Note that not every matrix has an inverse, but transformation matrices usually have.

Speed:

Fast

Example:

mat_inverse(my_matrix, mat_proj);

See also:

matrix, predefined matrices , mat_identity, mat_scale, mat_set, mat_inverse, mat_transpose, mat_multiply ► latest version online