cf_m4_invert¶
Category: math
GitHub: cute_math3d.h
Returns the inverse of a matrix.
| Parameters | Description |
|---|---|
a |
The matrix to invert. |
Return Value¶
Returns the inverse, or the identity matrix if a is singular.
Remarks¶
This is a general 4x4 inverse. If the matrix is a rigid transform (rotation plus translation with no scale), transposing the upper 3x3 and negating the translation is considerably cheaper.