datenwolf / linmath.h

a lean linear math library, aimed at graphics programming. Supports vec3, vec4, mat4x4 and quaternions
Do What The F*ck You Want To Public License
922 stars 134 forks source link

Added const qualifier for read-only parameters #34

Closed Philosoph228 closed 5 years ago

Philosoph228 commented 5 years ago

Let's finish it to perfection.

datenwolf commented 5 years ago

I wouldn't call it perfection. The matrix inversion is still using the determinant method which is inefficient and due to the number of fops involved also prone to numerical roundoff errors. Eventually this has to be rewritten into something like Gauß-Jordan, or LU or QR decomposition. Heck, even a relaxed Jacobi solver would be better.