Commit graph

97 commits

Author SHA1 Message Date
Brendan Zabarauskas
a485920354 Fix constructors, tests now pass (YAYAY!)
YAYYYYYYYYAYAYAYAYAYAYAY

*jumps for joy*
2013-06-01 11:07:25 +10:00
Brendan Zabarauskas
36039228b6 Don't use index operator in tests 2013-06-01 09:12:30 +10:00
Brendan Zabarauskas
a913be0373 Delete old files 2013-06-01 08:01:20 +10:00
Brendan Zabarauskas
d3bfcc194e Add license/copyright notices to source files 2013-06-01 08:01:01 +10:00
Brendan Zabarauskas
f800a0ae04 Fixes for core->std and changes to use 2013-05-24 07:05:25 +10:00
Brendan Zabarauskas
9116917607 Make trait names more succinct 2013-04-02 16:12:13 +11:00
Brendan Zabarauskas
69615bee12 Fix unit test build 2013-03-31 22:01:50 +11:00
Brendan Zabarauskas
1c51fba5a6 Fix tests 2013-03-29 18:48:01 +11:00
Brendan Zabarauskas
1342d52bfa Fix index operator overloads 2013-03-29 09:14:20 +11:00
Brendan Zabarauskas
faffdf8273 Remove test_rot module 2013-03-28 21:54:50 +11:00
Brendan Zabarauskas
1c09618aa4 Convert asserts to syntax extension form 2013-03-28 21:54:25 +11:00
Brendan Zabarauskas
27603dd6bd Remove instances of 'pure' 2013-03-28 21:35:51 +11:00
Brendan Zabarauskas
fdff434325 Update uses of fail to macro calls 2013-02-07 08:26:33 +11:00
Brendan Zabarauskas
d7f5efadbd Remove anonymous impls on types and transfer functionality to traits
Unfortunately this causes Rust's type inference to struggle, but this is a problem with the rust compiler and hopefully this will improve over time. Users are encouraged to use the type aliases and static method wrappers included with each module.
2013-01-29 20:26:48 +11:00
Brendan Zabarauskas
0a4e19ba1e Move GLSL type aliases to vec, mat and quat mods 2013-01-29 12:13:44 +11:00
Brendan Zabarauskas
153e5366c8 Remove FIXMEs 2013-01-29 11:48:41 +11:00
Brendan Zabarauskas
ba64b42932 Fix tests 2013-01-28 10:02:40 +11:00
Brendan Zabarauskas
ddc617c925 Updates due to changes in numeric-rs 2013-01-28 09:22:15 +11:00
Brendan Zabarauskas
aae354e3a6 Add component-wise vec/vec multiplication and division methods 2012-12-28 18:47:10 +10:00
Brendan Zabarauskas
0b55dc2105 Add methods in the Mat3 and Quat anonymous impls in preparation for implementing Rotation
rot::Rotation won't be able to be implemented until https://github.com/mozilla/rust/issues/4306 is fixed.
2012-12-28 16:41:21 +10:00
Brendan Zabarauskas
5c9d882efe Remove Quaternion trait 2012-12-28 13:47:34 +10:00
Brendan Zabarauskas
6485ff070e Add Rotation trait
This will eventually be implemented on Mat3 and Quat
2012-12-28 13:37:18 +10:00
Brendan Zabarauskas
16e06c3855 Add is_zero method to Vector trait 2012-12-24 13:46:25 +10:00
Brendan Zabarauskas
f4a8e5b99f Add fuzzy_eq tests 2012-12-18 13:48:02 +10:00
Brendan Zabarauskas
a95405fde7 Fix imports from numeric 2012-12-17 17:25:41 +10:00
Brendan Zabarauskas
5eff2e4992 Move relational vector traits to vec modules 2012-12-16 15:19:38 +10:00
Brendan Zabarauskas
ff336f0791 Switch to using numeric-rs for numeric type traits 2012-12-16 15:05:04 +10:00
Brendan Zabarauskas
00e2543b22 Fix imports 2012-12-16 09:57:42 +10:00
Brendan Zabarauskas
563aa9495e Remove from_mat constructors
We already have the to_mat conversion methods, so these are redundant
2012-12-14 18:37:02 +10:00
Brendan Zabarauskas
9820436633 Remove random text
8^[
2012-12-14 16:31:07 +10:00
Brendan Zabarauskas
6c4c2fc1c8 Add more Quaternion unit tests. 2012-12-14 16:05:18 +10:00
Brendan Zabarauskas
3d31797d8d Add angle calculation method to vectors, improve vector unit tests 2012-12-13 22:01:55 +10:00
Brendan Zabarauskas
b4fbb9c76a Remove Rotation struct and methods 2012-12-08 12:59:10 +10:00
Brendan Zabarauskas
079199c275 Remove default_eq module 2012-12-07 02:19:48 +10:00
Brendan Zabarauskas
e2b134d51f Add mut matrix methods 2012-12-05 13:49:59 +10:00
Brendan Zabarauskas
8acc8f6943 Improve mathematical terminology 2012-12-05 12:10:05 +10:00
Brendan Zabarauskas
e2857c6e7e Create and implement MutableGeometricVector trait 2012-12-05 08:21:40 +10:00
Brendan Zabarauskas
ea17c63200 Add cross_self method 2012-12-05 01:34:41 +10:00
Brendan Zabarauskas
9012589f5f Create and implement MutableNumericVector trait 2012-12-04 23:32:34 +10:00
Brendan Zabarauskas
0b9af30b38 Add swap methods 2012-12-04 17:58:03 +10:00
Brendan Zabarauskas
660c423d46 Update trait names 2012-12-04 14:07:44 +10:00
Brendan Zabarauskas
07bed0a9c1 Add to_identity and to_zero methods 2012-12-04 12:51:38 +10:00
Brendan Zabarauskas
4fcd71be8e Rename invert method to inverse 2012-12-04 08:12:22 +10:00
Brendan Zabarauskas
e1ed642f76 Restore boolean vectors in gltypes module and relational traits
I forgot that these would be useful for the AABB struct that will be implemented in the future.
2012-12-03 11:24:24 +10:00
Brendan Zabarauskas
3d293dce5a Rename det method to determinant 2012-12-03 11:08:36 +10:00
Brendan Zabarauskas
668186a2e2 Merge matrix traits, simplify gltypes, remove relational functions
Let's try to simplify this thing!
2012-12-03 08:15:40 +10:00
Brendan Zabarauskas
90802b1713 Fix angle wrapping 2012-12-02 15:39:49 +10:00
Brendan Zabarauskas
4515c9f7e0 Remove unwrap operators 2012-12-01 22:55:14 +10:00
Brendan Zabarauskas
4ce43ff18e Add temporary fixes for weird type mismatch errors 2012-12-01 22:49:24 +10:00
Brendan Zabarauskas
7d559c09e2 Add opposite method 2012-11-30 22:28:58 +10:00