I realize that there are several c++ libraries, but I would greatly prefer C. I found this, but it appears to be for Mac only: https://github.com/rsebbe/CeedMath
问题:
回答1:
(Shameless self advertisement) You may be interested in my linmath.h. Be warned though that I update it only occassionally and some parts may still contain weird bugs. Please report anything you may find.
回答2:
You should take a look at gsl for your math operations, and gmp for arbitrary precision numbers. They are both cross platform, gnu c libraries that are highly optimized for speed and have support for many types of operations.
Cheers, Ned
回答3:
I just found this, seems to be the most complete. Can't speak for its quality yet obviously: https://github.com/Kazade/kazmath.git
There is also this, seems pretty old (I found code from 2002), but that doesn't mean it's bad: Meschach
回答4:
And why no one mentioned the GLM lib?It is header only math library for OpenGL.