affine_inverse

Function affine_inverse 

Source
pub fn affine_inverse(m: &M4) -> Option<M4>
Expand description

Inverse of an AFFINE row-major matrix (last row [0,0,0,1], which is not read): the upper 3x3 by cofactors, the translation by -R⁻¹·t.

None when the 3x3 determinant is not finite or abs(det) < SINGULAR_DET_EPS, or when any entry of the inverse is not finite (a NaN or infinite translation), so a non-finite placement is refused rather than inverted to NaN.