Jump to content
  • Advertisement
Sign in to follow this  
BrianL

Free math library?

This topic is 4327 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to resist the urge to write my own math library. I have looked around a bit for a light weight set of math classes (matrix, vector, quat, etc) with a liberal license (ie MIT, BSD, etc). I also want something cross platform, so the DX set of functions is out for example. Any recommendations? I looked at the Magic Software library a while ago, but it was rather huge/heavy weight. I am closing in on the point where it feels like writing and testing my own classes would be simpler than finding a library that meets my needs.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Quote:
Original post by hplus0603
I think you could do worse than the Magic Software code (make sure you check the license, though!)


The company and software has not been called "Magic Software" for some time (now Geometric Tools with Wild Magic as the library name). The Wild Magic 3.x license is about to be modified to LGPL. The Wild Magic 4 license indicates it is "viewable source" and not "open source".

Share this post


Link to post
Share on other sites
Honestly, if all you want is matrix/vector/quaternion stuff, you could roll your own library in a day or two. Just make sure you test it *very* thoroughly. :)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by lancekt
Honestly, if all you want is matrix/vector/quaternion stuff, you could roll your own library in a day or two. Just make sure you test it *very* thoroughly. :)


Kinda what the OP was attempting to avoid...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by BrianL
Any recommendations? I looked at the Magic Software library a while ago, but it was rather huge/heavy weight.


The vector/matrix/quaternion stuff is really not that large a quantity of code. Strip out of those classes what you don't want.

Share this post


Link to post
Share on other sites
Quote:
Original post by lancekt
Honestly, if all you want is matrix/vector/quaternion stuff, you could roll your own library in a day or two. Just make sure you test it *very* thoroughly. :)


Thats what I am leaning towards at this point. The post here was a last ditch effort to avoid reinventing the wheel.

On a past project, I tried pulling bits out of the old Magic Software library . This worked, but class API just felt inconsistent with the rest of the code. Writing me own would be good practice and would give me a more consistent interface.

Thanks for the suggestions all.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!