Corey Richardson
c9bdf838a5
Update for Cargo
2014-06-23 23:49:29 -07:00
ozkriff
a850e37424
Updated to latest Rust: PartialEq, PartialOrd
2014-06-02 12:18:05 +04:00
Brendan Zabarauskas
3559ab2e35
Simplify type signatures and make function implementations more strait-forward
...
This results in more code duplication, but the resulting type signatures are much simpler and the implementations are far easier to understand. It should be easier for llvm to optimise things too, seeing as closures are not used.
2014-05-27 19:39:14 -07:00
Brendan Zabarauskas
d4ce9c7613
Clean up numeric traits
2014-05-26 10:31:55 -07:00
Corey Richardson
27488b0dbc
Touch up docs for Rotation
2014-05-25 04:10:44 -07:00
Brendan Zabarauskas
64ae5fbd9a
{Vec, Mat, Quat}->{Vector, Matrix, Quaternion}
...
The full names provide consistency with the other types. Also, Vec is now a type declared in libstd - this will reduce confusion.
2014-04-14 12:00:48 +10:00
ozkriff
18fe0e74b5
Updated to latest Rust: priv/pub
2014-04-01 15:00:17 +04:00
ozkriff
83943cd5b5
Replaced partial_{min,max} funcs with PartOrdPrim trait
2014-03-19 13:18:59 +04:00
Dzmitry Malyshau
21f10ee0ec
Rotation2 and Rotation3 improved with from_* methods. Betwee_vecs implemented for all rotations.
2014-01-29 19:27:39 -05:00
Dzmitry Malyshau
1789f26ea1
look_at() implemented as a part of Transform trait
2014-01-25 17:26:06 -05:00
kvark
2fdf34cd18
New ApproxEq replaced the one in std
2014-01-08 19:26:50 -05:00
Brendan Zabarauskas
9f39bf67b2
Formatting cleanups
2013-11-09 12:15:51 +11:00
kvark
42e3801715
Implemented missing rotation functions (rotate_point, rotate_ray)
2013-11-02 11:16:18 -04:00
kvark
364d959784
Fixed tests to compile; added Point homogeneous transform & test; added Transform inversion & test; Implemented Transform for AffineMatrix3
2013-11-01 19:42:09 -04:00
kvark
6dd06103fc
Generalized transform trait over any-dimensional vectors and points
2013-11-01 08:29:01 -04:00
kvark
0c41aa3951
Rotation is generalized over dimensions
2013-11-01 07:34:39 -04:00
Brendan Zabarauskas
77aeff0785
Rename Rot->Basis
2013-10-13 11:00:07 +11:00
Brendan Zabarauskas
70d48ed37b
Force the client to perform Degree->Rad conversions by taking Rad parameters instead of generic Angles
...
This should make the overhead of conversions evident to the client.
2013-10-13 10:52:21 +11:00
Brendan Zabarauskas
e4e9b6909e
Reduce the number of rotation types, shifting some of the functionality to the quaternion and matrix constructors.
2013-09-30 14:30:40 +10:00
Brendan Zabarauskas
8ed39f3982
Clean up usages of std::num::cast
2013-09-19 14:57:36 +10:00
Brendan Zabarauskas
eade6cc18f
Implement inversions for AngleAxis rotations
2013-09-17 18:45:31 +10:00
Brendan Zabarauskas
172c60277f
Flesh out Rotation{2, 3} traits, and impl for some types
2013-09-17 14:38:25 +10:00
Brendan Zabarauskas
df9c66d1bb
Use macro instead of loop for Array::build
2013-09-07 19:51:01 +10:00
Brendan Zabarauskas
6534855673
Add rotation module
2013-09-05 16:43:52 +10:00