Created a new math library.

This library will e the math library of the magic game engine.

Currently, it defines basic numerical types that can be used in generic programming
and a set of generic Vector structures.

Tests can be added to the "tests" crate.
This commit is contained in:
Jason Travis Smith
2015-10-04 02:59:26 -04:00
commit 0160780bd1
10 changed files with 571 additions and 0 deletions

13
tests/vector.rs Normal file
View File

@ -0,0 +1,13 @@
extern crate sigils;
use sigils::Vector;
#[test]
fn vector_creation()
{
let v: Vector<f32>;
v = Vector::new();
assert_eq!(v.x, 1.0f32);
}