Commit graph

1569 commits

Author SHA1 Message Date
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
Brendan Zabarauskas ce9da70fb7 Merge pull request #332 from bjz/structure-module
Move traits into common module
2016-04-19 21:03:31 +10:00
Brendan Zabarauskas 8dd2874b59 Move traits into common module 2016-04-19 20:51:40 +10:00
Brendan Zabarauskas ee5396a64c Merge pull request #328 from bjz/move-slerp-to_euler
Move Quaternion::{slerp, to_euler} out of separate impl block
2016-04-16 14:44:44 +10:00
Brendan Zabarauskas e9671e6070 Move Quaternion::{slerp, to_euler} out of separate impl block 2016-04-16 14:32:28 +10:00
Brendan Zabarauskas 7b04a30104 Merge pull request #326 from bjz/stabilise-assignment-ops
Stabilise assignment operators
2016-04-16 14:26:54 +10:00
Brendan Zabarauskas 07301eb4d0 Stabilise assignment operators
Assignment operators were stabilised in Rust 1.8.
2016-04-16 10:09:47 +10:00
Brendan Zabarauskas 3cc33c4606 Merge pull request #320 from bjz/the-grand-trait-unification
Unify traits into an algebraic heirachy
2016-04-12 08:48:13 +10:00
Brendan Zabarauskas 5952326851 Merge pull request #323 from mhintz/readme-edit
Add note about column-vector convention
2016-04-10 18:57:46 +10:00
Mark Hintz a37bc49882 Add note about column-vector convention
This is something which I think every vector math library should have, as it clears
up the convention for newcomers and saves them the trouble of figuring that out for themselves.
2016-04-10 08:28:34 +02:00
Brendan Zabarauskas 23fce928c0 Module documentation updates 2016-04-09 14:22:30 +10:00
Brendan Zabarauskas a3e6cd26b5 Document fields 2016-04-09 13:47:17 +10:00
Brendan Zabarauskas 886e2fb240 Unify trait hierarchies for vectors, quaternions and matrices 2016-04-09 13:47:04 +10:00
Brendan Zabarauskas b4063ea72a Rename Point to EuclideanSpace 2016-04-08 19:56:30 +10:00