src/matrix4i_ptr.c file

Functions

void mat4i_inverse_ptr(matrix4i* res, const matrix4i* m)
Computes the inverse of the given 4x4 integer matrix and stores the result in the specified matrix.

Function documentation

void mat4i_inverse_ptr(matrix4i* res, const matrix4i* m)

Computes the inverse of the given 4x4 integer matrix and stores the result in the specified matrix.

Parameters
res Pointer to the matrix structure to store the inverse matrix.
m Pointer to the constant matrix to be inverted.

If the matrix is singular (determinant is zero), the result is set to the identity matrix.

Truncated integer inverse (not a modular inverse).