Colin Sherratt
25d67c7ec7
Added matrix that inverted incorrectly as part of #83 .
2014-06-05 15:53:23 -04:00
Brendan Zabarauskas
5716dce205
Add matrix operator tests
2014-05-26 11:26:27 -07:00
Corey Richardson
fd2138bd88
Document Matrix
...
And remove `is_rotated`
2014-05-25 01:01:02 -07:00
Brandon Waskiewicz
8ff2598dd9
Add line segment shape and functions
...
Create a new line segment struct that contains two Points in either
2D or 3D space.
Also create an implementation of the Intersect trait for testing
whether two line segments intersect, and where.
2014-05-13 21:39:38 -04:00
Brendan Zabarauskas
7c11ec250a
Update formatting
2014-04-14 12:00:48 +10: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
3ee67019dd
Updated to latest Rust: math changes
2014-04-02 13:24:04 +04:00
ozkriff
c026f520e1
Fixed warnings
2014-03-17 16:14:39 +04:00
ozkriff
141c4a8684
Updated to latest Rust
2014-02-22 01:44:56 +04:00
Colin Sherratt
4bcb1a5406
changed extern mod to extern crate
2014-02-15 22:46:33 -05:00
Risto Saarelma
fb03e2a660
Arguments directly used to construct AABB passed by value
2014-02-12 08:56:39 +02:00
Risto Saarelma
907165075c
Translate and scale methods for AABB
2014-02-07 08:48:46 +02:00
Risto Saarelma
ff9fc767d4
Translate method for AABBs
2014-02-07 08:48:46 +02:00
Risto Saarelma
6ac1f09750
Utility methods for AA boxes
2014-02-07 08:48:46 +02:00
Risto Saarelma
cdcae58c02
Axis-aligned boxes use top and bottom corners
...
Fixes issue #35 .
2014-01-30 21:43:36 +02:00
Colin Sherratt
fb13dc4566
Implement to_mat4 for Transform3D and quaternion
...
Add a translate builder for Transform3D
2014-01-28 22:10:38 -05:00
Dzmitry Malyshau
1789f26ea1
look_at() implemented as a part of Transform trait
2014-01-25 17:26:06 -05:00
Brendan Zabarauskas
337061bd82
Call rustc directly in .travis.yml
2014-01-26 05:02:19 +11:00
Brendan Zabarauskas
feb4ae2a00
Move tests into source files
2013-06-12 11:02:11 +10:00
Brendan Zabarauskas
17975b798d
De-traitify types, fix tests
2013-06-11 09:02:25 +10:00
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