Introduce a safe matrix inverse
Closed this issue · 0 comments
nfrechette commented
Current matrix inverse implementations assume that the matrix is invertible. This is generally true but it isn't always the case. If the determinant is 0.0, the result is undefined. A new matrix_inverse should be introduced for all matrix types that checks the determinant and returns a fallback value if we need to, see vector_normalize3
.