Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ 3D Math Library [closed]

Tags:

c++

math

3d

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.

like image 919
chris Avatar asked Jun 22 '09 15:06

chris


3 Answers

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

like image 141
joe Avatar answered Oct 23 '22 07:10

joe


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.

like image 22
Mark Ingram Avatar answered Oct 23 '22 08:10

Mark Ingram


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.

like image 35
R Ubben Avatar answered Oct 23 '22 08:10

R Ubben