What's the best, complex math library in c++? (I'd like to use it in graphics engine)
EDIT: I should precise it a bit: it should have all 3d math, like planes, spheres, points, AABB, etc. and of course matrix, vector, quaternion support.
It dependes on What you are going to develop . as per my knowledge these are good libs .
Geometric Tools (previously known as WildMagic)
OxMath 2D/3D Math Library 2.1
MATHLIB3D
Configurable Math Library (CML)
glmath
If you're working with OpenGL you could try the OpenGL Mathematics (glm) library. It implements all of it's classes in terms of GLSL so it's easy to use between client side and server side.
Do you mean best as in speed? If you are writing for Windows, and you are talking about vector math, matrix math, and the like, I have not run across anything faster than the Math functions in DirectX/XNA. (D3DX)
DirectX does not offer complex number support; it deals with floats, but I don't think people use complex numbers in graphics engines very often. It would be easy enough to implement if you had to have it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With