Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

Geom3D

A little repo in response to the fact that there is no good library for doing even basic computational geometry and/or 3D math in C#. There is a nuget library available called Math.Net Numerics along with Math.Net Spatial that will get you vectors and matrices but not with all the convenience routines you’d expect to treat vectors like 3D points and so forth.

To this end this rwpo is merely what you get by extracting the vectors and matrices out of monogame and search-and-replacing “float” to “double” to get double precision.

I also included in here

  • 3D line segment/line segment intersection code and
  • 3D triangle/triangle intersection code

which I transliterated to C#.

The line segment intersection code came from Paul Bourke’s web site. The triangle intersection code came from running T omas Moller’s C code through just a C preprocessor to resolve all the macros and then transliterating the result to C#.

About

vectors and matrices from monogame as double precision plus some helpful computational geometry functions.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.