Commit graph

1332 commits

Author SHA1 Message Date
Jordan Miner
c11371794f Fix Euler angle to matrix conversion
The equations were written with rows horizontally instead of vertically
and some signs were wrong.
2016-05-12 01:28:16 -05:00
Jordan Miner
b56119a42f Test converting axis angles to quaternions 2016-05-12 01:28:15 -05:00
Jordan Miner
467e87f3d3 Fix Euler angles to quaternion conversion and vise versa
Add tests that rotate a vector in all three axes, and tests to check
the axis rotation sequence.
2016-05-12 01:28:15 -05:00
Brendan Zabarauskas
a7f4aa1756 Merge pull request #358 from bjz/rotation-one
Make Rotation trait depend on One
2016-05-12 12:13:15 +10:00
Brendan Zabarauskas
a1d8eaed10 Make Rotation trait depend on One 2016-05-12 08:36:34 +10:00
Brendan Zabarauskas
8518ce78e8 Remove transforma_as_point method 2016-05-12 08:31:56 +10:00
Brendan Zabarauskas
e873d4621b Merge pull request #357 from bjz/remove-affinematrix3-type
Remove AffineMatrix3
2016-05-12 08:01:16 +10:00
Brendan Zabarauskas
06a58e006b Remove AffineMatrix3 2016-05-11 23:09:34 +10:00
Brendan Zabarauskas
aaabe6e478 Merge pull request #353 from mhintz/remove-unused-imports
Remove unused imports
2016-05-11 22:11:49 +10:00
Mark Hintz
ec3385ceab Remove unused imports
Fixes compile warnings
2016-05-11 13:21:56 +02:00
Brendan Zabarauskas
32baeea31f Merge pull request #352 from bjz/remove-invert-self
Remove invert self methods
2016-05-11 15:10:24 +10:00
Brendan Zabarauskas
266f4c1d0d Fix export warning 2016-05-10 21:55:20 +10:00
Brendan Zabarauskas
65e744c8cd Remove self inversion methods 2016-05-10 21:55:11 +10:00
Brendan Zabarauskas
a4763647ec Merge pull request #339 from bjz/num-traits
Re-export num-traits crate
2016-05-09 22:31:51 +10:00
Brendan Zabarauskas
d08d00659c Merge pull request #347 from mhintz/matrixtransform
implement Transform for Matrix3 and Matrix4
2016-05-09 22:31:21 +10:00
Brendan Zabarauskas
d4fea6dd06 Merge pull request #351 from danpalmer/patch-1
Fix typo and wording in README
2016-05-03 15:22:15 +10:00
Dan Palmer
b0e07332b4 Fix typo and wording in README
"paramerise" -> "parameterize", and "more than useful" -> "more than enough" (which is better wording in the context I think).
2016-05-02 23:45:29 +01:00
Mark Hintz
074cb2c36f Change the name of methods on the Transform trait to avoid clashes
Transform::invert becomes Transform::inverse_transform, and Transform::invert_self becomes Transform::to_inverse. Tests passing for me now
2016-05-01 14:59:38 +02:00
Mark Hintz
0a78173e2b impl Transform (2 dimensional) for Matrix3 2016-04-28 16:37:36 +02:00
Mark Hintz
a3539483b6 impl Transform (3 dimensional) for Matrix3 2016-04-28 16:37:36 +02:00
Mark Hintz
ab1d3d8622 imple Transform (and Transform3) for Matrix4
The change in transform.rs is to disambiguate which invert function is used
2016-04-28 16:37:36 +02:00
Mark Hintz
c32135a5d9 Move the From impls together 2016-04-28 16:37:36 +02:00
Brendan Zabarauskas
f23374111f Merge pull request #348 from mhintz/rotation-ctors
implement from_angle{x, y, z} and from_axis_angle for Matrix4
2016-04-28 15:23:03 +10:00
Mark Hintz
808a17fc22 implement from_angle{x, y, z} and from_axis_angle for Matrix4
All are duplicates of the same functions for Matrix3, with extra parameters added in to make up the full 4x4
2016-04-28 01:03:33 +02:00
Brendan Zabarauskas
61681037b9 Merge pull request #346 from mhintz/angle-fix
Minor documentation fix - cotangent and secant were swapped
2016-04-28 07:32:00 +10:00
Mark Hintz
c8b1d4b498 Minor documentation fix - cotangent and secant were swapped 2016-04-27 17:10:57 +02:00
Brendan Zabarauskas
f8f10daaae Merge pull request #345 from bjz/inherit-one-zero
Integrate One and Zero traits into the algebraic trait heirachy
2016-04-25 20:21:52 +10:00
Brendan Zabarauskas
6b48236cb6 Inherit Zero and One for core structural traits 2016-04-25 15:26:56 +10:00
Brendan Zabarauskas
54adacc2a8 Re-export Zero and One via structure module 2016-04-25 11:43:28 +10:00
Brendan Zabarauskas
e1de5e9330 Merge pull request #343 from bjz/vector1
Add Vector1 and Point1 structs
2016-04-25 09:19:31 +10:00
Brendan Zabarauskas
87911b3542 Merge pull request #342 from bjz/midpint-centroid
Add midpoint and centroid functions
2016-04-25 09:00:03 +10:00
Brendan Zabarauskas
4c2f301561 Add Vector1 and Point1 structs 2016-04-25 08:59:33 +10:00
Brendan Zabarauskas
bb4ebbdd76 Add midpoint and centroid functions 2016-04-24 13:54:29 +10:00
Brendan Zabarauskas
87fcb62653 Merge pull request #340 from bjz/metric-space
Add MetricSpace trait for calculating distances
2016-04-24 11:48:17 +10:00
Brendan Zabarauskas
8795b179d7 Add MetricSpace trait for calculating distances 2016-04-23 19:58:34 +10:00
Brendan Zabarauskas
04073c724d Merge pull request #330 from bjz/euler
Switch to an Euler angle type for defining rotations
2016-04-23 17:44:12 +10:00
Brendan Zabarauskas
dacb511b78 Add Euler::new function 2016-04-23 17:08:40 +10:00
Brendan Zabarauskas
437e2ec9f9 Document pitch/yaw/roll 2016-04-23 16:56:07 +10:00
Brendan Zabarauskas
0259acb87f Switch to an Euler angle type for defining rotations 2016-04-23 16:56:07 +10:00
Brendan Zabarauskas
5a8caa47f0 Re-export num-traits crate 2016-04-23 16:17:31 +10:00
Brendan Zabarauskas
a521a9254f Merge pull request #338 from bjz/num-traits
Switch to using num_traits crate from num
2016-04-23 14:33:16 +10:00
Brendan Zabarauskas
86c13ca14f Switch to using num_traits crate from num
Fixes #336
2016-04-23 14:03:35 +10:00
Brendan Zabarauskas
73b8a6b675 Merge pull request #335 from bjz/version-bump
Update to v0.9.1
2016-04-20 23:18:47 +10:00
Brendan Zabarauskas
8eeefa3ca2 Bump version number 2016-04-20 22:59:45 +10:00
Brendan Zabarauskas
1a5e321d53 Update changelog 2016-04-20 22:59:15 +10:00
Brendan Zabarauskas
394a6a7d51 Merge pull request #334 from Arvamer/master
Fix assignment operators for angles
2016-04-20 22:54:50 +10:00
Arvamer
b21ad34b8b Fix assignment operators for angles 2016-04-20 12:17:42 +02:00
Brendan Zabarauskas
6e9d13c94d Merge pull request #333 from bjz/version-bump
Update to v0.9.0
2016-04-19 22:29:12 +10:00
Brendan Zabarauskas
d467e5b5d8 Update Cargo.toml 2016-04-19 22:16:05 +10:00
Brendan Zabarauskas
615e459204 Update changelog
Fixes #331
2016-04-19 22:11:49 +10:00