Click here to Skip to main content
Click here to Skip to main content

Sharp3D.Math - A 3D math library for .NET

, 9 Jun 2004
Rate this:
Please Sign up or sign in to vote.
A 3D math library written in C#

Introduction

I started building this library as part of a C# 3D engine I am currently working on. Having noticed that there isn't any decent open-source C# library for dealing with complex math out there I decided to focus my efforts on this library and release it to the world.

More information could be found on the project's workspace at http://workspaces.gotdotnet.com/sharp3d.

Features

  • Support both single-precision and double-precision floating point types.
  • Full-featured implementation of mathematical data types including complex numbers' quaternion and various sizes of matrices and vectors.
  • Geometric data types and algorithms for 2D and 3D - distance and intersection methods, bounding volumes etc.
  • Random number and noise generation.
  • Strong-Typed collections for the library's data types.
  • Extension of standard mathematical functions, such as Cos(), Sqrt(), and Exp(), to work with vectors, matrices, and complex number classes.
  • A support library for converting between DirectX and Sharp3D.Math structures.

History

  • v1.1.1621.25560 - Update
    • Added array lists for vector structures.
    • Added a Polygon class to the Geometry3D and Geometry2D namespaces.
    • Added a Triangle structure to the Geometry3D namespace.
    • Intersection Methods : Ray to plane, AABB, OBB, Triangle and Sphere (not fully implemented yet).
    • Intersection Methods between AABB, OBB and Sphere (not fully implemented yet).
    • Added <, > , <=, >= operators to the vector structures.
    • Added IIntegrator implementations : SimpsonIntegral.
    • Implemented the Parse method for vectors and complex numbers.
    • Created Sharp3D.Math.Tests library and moved all unit testing classes there so that Sharp3D.Math is no longer dependent on NUnit.Framework.dll.
  • v1.1 - First release.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Eran Kampf
Web Developer
Israel Israel
No Biography provided

Comments and Discussions

 
Generala very useful lib.... Pinmemberzhaochunyan21-Apr-09 21:47 
GeneralMatrix indexing for 3- and 4-dimensional matrixes is wrong PinmemberKluyg18-Nov-07 4:55 
Generalsquare root of a complex number incorrect PinmemberChris J Saunders4-Jan-07 20:35 
GeneralRe: square root of a complex number incorrect PinmemberEric Engler13-Apr-07 10:03 
GeneralRe: square root of a complex number incorrect PinmemberChris J Saunders13-Apr-07 14:04 
GeneralThis saved me hours of programming PinmembervanRCAD17-Sep-06 0:30 
QuestionHow to Install & Use the Library PinmemberDaniel P25-May-06 17:04 
AnswerRe: How to Install & Use the Library PinmemberEran Kampf25-May-06 22:31 
GeneralLibrary updates PinmemberEran Kampf10-Jan-05 6:44 
GeneralRandom number generation. Pinmemberwout de zeeuw25-Sep-04 9:05 
GeneralRe: Random number generation. PinmemberEran Kampf25-Sep-04 10:00 
QuestionWhy no credit to the Exocortex libraries this is derived from? PinmemberBen Houston19-Sep-04 11:56 
AnswerRe: Why no credit to the Exocortex libraries this is derived from? PinmemberEran Kampf20-Sep-04 0:15 
GeneralRe: Why no credit to the Exocortex libraries this is derived from? PinmemberBen Houston20-Sep-04 5:01 
GeneralRe: Why no credit to the Exocortex libraries this is derived from? PinmemberEran Kampf20-Sep-04 7:06 
GeneralRe: Why no credit to the Exocortex libraries this is derived from? PinmemberBen Houston20-Sep-04 7:29 
GeneralRe: Why no credit to the Exocortex libraries this is derived from? PinmemberEran Kampf20-Sep-04 7:52 
GeneralRe: Why no credit to the Exocortex libraries this is derived from? PinsussAnonymous20-Sep-04 9:03 
GeneralRe: Why no credit to the Exocortex libraries this is derived from? PinmemberEran Kampf20-Sep-04 9:13 
AnswerRe: Why no credit to the Exocortex libraries this is derived from? PinsussAndrew Phillips25-Aug-05 22:54 
GeneralGood stuff Pinmemberwout de zeeuw19-Aug-04 23:32 
GeneralNew homepage PinmemberEran Kampf15-Aug-04 7:27 
GeneralSome comments PinmemberColin Angus Mackay10-Jun-04 12:00 
GeneralRe: Some comments PinmemberEran Kampf10-Jun-04 12:18 
GeneralRe: Some comments PinmemberColin Angus Mackay10-Jun-04 12:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 10 Jun 2004
Article Copyright 2004 by Eran Kampf
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid