Jump to content
  • Advertisement
Sign in to follow this  
jwezorek

a 3D geometry library for C# that supports double precision?

This topic is 551 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

Hey does anyone know of a library for C# that lets me do transformations on 3D points where everything is doubles not floats?

Currently I'm using XNA/Monogame which has what I need but only for floats. I need things like vector.Transform(Matrix), Matrix.CreateTranslation(...), Matrix.CreateFromAxisAngle(...) etc. -- the normal stuff. I dont need any graphics calls: this is for a receational math / researchy thing not a game. 

There is a library for C# called Math.Net Numerics and Math.Net Spatial but "Spatial" has like nothing in it. The numerics one will get me matrices but they didnt write all the convenience routines for the geometric interpretation of vectors and matrices as far as I can see. I am wondering if someone has this up on github somewhere on top of Math.Net but havent found anything.

Share this post


Link to post
Share on other sites
Advertisement
Nvm. I just copied Matrix.cs, Vector3.cs, and Vector4.cs from Monogame, and search and replaced float with double.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!