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:
13
tests/vector.rs
Normal file
13
tests/vector.rs
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user