Commit graph

114 commits

Author SHA1 Message Date
Colin Sherratt bc89f14250 Fix tests 2015-01-09 15:30:19 -07:00
Colin Sherratt c7270a9077 Update to latest rustc 2015-01-07 15:34:42 -07:00
Connorcpu 43cfdd94ec Fixed macros with missing semicolons 2014-12-19 09:48:59 -08:00
Jameson Ernst 12ec7318d0 Remove deprecated Float use from tests. 2014-11-24 20:24:04 -08:00
Eduard Bopp 4d2fb64482 Type-cast a vector component-wise
This allows one to e.g. cast a vector of f64s to an equivalent vector of f32s.
More generally this is allowed for arbitrary NumCast types.
2014-11-20 16:41:27 +01:00
Brendan Zabarauskas 1371f75165 Update for rustc 0.13.0-nightly
There are still some deprecation errors in the doc tests left
2014-11-16 01:59:43 +11:00
Tomaka17 4fcfde13de fail! -> panic! 2014-10-30 10:11:33 +01:00
Eduard Bopp 666bb56670 Assertion macros for approximate equality
For sake of readability and consistency with the standard library macros
assert! and assert_eq!, the macros assert_approx_eq! and assert_approx_eq_eps!
have been implemented based on the ApproxEq trait.

Upon failure these macros yield readable error messages including the input
values and the tolerance (epsilon) used to determine their approximate
equality.

Resolves #131.
2014-10-23 10:22:34 +02:00
Colin Sherratt 0f0b960211 Added to_euler which allows moving from to and from euler coordinates.
I did not have much luck getting the old from_eular logic work the way I
expected so I updated the implementation to match my sources.

I believe this changed the order of the axis, I am unsure of what they were
before.
2014-10-13 21:05:49 -04:00
Colin Sherratt aae8747595 Fix ortho projection matrix 2014-10-04 20:12:09 -04:00
Brendan Zabarauskas 379dc499ec Publicly re-export everything from the root crate
Closes #100
2014-08-16 14:53:54 +10:00
Brandon Waskiewicz 4f17d73f23 Add Ray2<>Aabb2 intersection impl 2014-08-13 20:51:51 -04:00
Brandon Waskiewicz 814b845de7 Update line intersection
*Change line<>line intersection to be ray<>line.
*Update tests accordingly
*Clean up and simplify intersection logic
2014-08-13 20:51:44 -04:00
Brendan Zabarauskas 8e5500d581 Switch to cargo 2014-08-11 16:15:14 +10:00