Commit Graph

593 Commits

Author SHA1 Message Date
mitchmindtree 51381ff84d Allow for non-consuming std operations on DMat. Added DMat multiplication test. 2015-06-21 00:20:39 +10:00
Sébastien Crozet 792d7fda7a Merge pull request #138 from sebcrozet/fix_travis
Don't run benchmarks on travis.
2015-06-20 00:01:15 +02:00
Sébastien Crozet cbd9ebad9f Don't run benchmarks on travis.
Benchmarks require `#[feature(test)]` which is not supported by the stable branch.
2015-06-19 23:48:27 +02:00
Sébastien Crozet 44df67bde2 Fix the README examples. 2015-06-06 14:28:34 +02:00
Sébastien Crozet ee7efb5efc Release v0.2.17. 2015-06-06 13:01:31 +02:00
Sébastien Crozet b3684bc912 Merge pull request #133 from sebcrozet/dmat_add_sub
Add pointwise addition and subtraction for `DMat`.
2015-06-06 13:01:02 +02:00
Sébastien Crozet 410c3c9566 Add pointwise addition and subtraction for `DMat`.
Fix #132.
2015-06-06 12:59:47 +02:00
Sébastien Crozet 981bc85e2a Release v0.2.16. 2015-06-01 23:10:46 +02:00
Sébastien Crozet d13c42253d Merge pull request #131 from sebcrozet/rotation_to
Add the `RotationTo` trait to compute the delta rotation between two elements.
2015-06-01 23:09:44 +02:00
Sébastien Crozet b859b32804 Add tests for `::angle_between` and `::rotation_between`. 2015-06-01 22:39:33 +02:00
Sébastien Crozet ea86890647 Add the `RotationTo` trait to compute the delta rotation between two elements.
Use `::angle_between` or `.angle_to`  to compute the rotation angle between two vectors/rotation
matrices/unit quaternions.
Use `::rotation_between` or `.rotation_to` to compute the rotation matrix/unit quaternion to
transform a vector/rotation matrix/uniq quaternion to another.

Fix #130.
2015-06-01 22:39:27 +02:00
Sébastien Crozet 11bbf0ff11 Merge pull request #129 from sebcrozet/ncollide_fixes
Minor breaking changes needed by `ncollide`.
2015-05-25 14:58:18 +02:00
Sébastien Crozet 0d4673ac79 Release 0.2.15 2015-05-25 14:51:22 +02:00
Sébastien Crozet ca87f9eb95 Rollup of minor beaking changes.
Use associated types for the `Outer` trait.
Add a `Repeat` trait for constructing a multidimensional value by repeating an element.
Split the `Diag` trait into `Diag` and `DiagMut`.
Implement `RustEncodable` for `Identity`.
2015-05-25 14:47:14 +02:00
Sébastien Crozet bf4c27ae10 Releave v0.2.14 2015-05-14 09:03:46 +02:00
Sébastien Crozet a0f2587ebe Merge pull request #127 from tinco/index_transmute_bug
This reference should not be mut
2015-05-11 19:09:49 +02:00
Tinco Andringa b26a994659 This reference should not be mut 2015-05-09 16:23:53 +02:00
Sébastien Crozet 0b1969d4d5 Release v0.2.13 2015-05-09 00:03:05 +02:00
Sébastien Crozet 5f7b480827 Merge pull request #125 from tinco/add_neg_to_base_float
Add neg trait to BaseFloat
2015-05-08 23:55:00 +02:00
Sébastien Crozet cea93fcad3 Merge pull request #124 from aepsil0n/remove-ops-hacks
Remove operator hacks
2015-05-08 23:44:35 +02:00
Tinco Andringa 83917cb4a4 Qualify the output of FloatVec Neg 2015-05-08 21:44:03 +02:00
Tinco Andringa f0ce528903 Add neg trait to BaseFloat 2015-05-08 21:03:13 +02:00
Eduard Bopp 730dc40b01 Remove operator hacks
The LMul, RMul and Scalar* traits were only necessary due to language
limitations regarding trait bounds that are now gone. The Mat trait is now
expressed in terms of regular operator traits.

However, due to the removal of these traits this constitutes a breaking change.
2015-05-06 13:23:14 +02:00
Sébastien Crozet 350c8fb927 Release v0.2.12 2015-04-23 23:56:06 +02:00
Sébastien Crozet 2c6449b733 Merge pull request #122 from arturoc/master
fixes for latest rust
2015-04-23 23:55:18 +02:00
arturo castro 24fa9c7826 fixes for latest rust 2015-04-23 20:26:16 +02:00
Eduard Bopp e3809ef06d Release v0.2.11 2015-04-22 19:18:45 +02:00
Sébastien Crozet c98de73e30 Merge pull request #121 from sebcrozet/remove_deprecated
Remove all deprecated functions/traits.
2015-04-18 15:21:01 +02:00
Sébastien Crozet 8abec75c78 Merge pull request #120 from sebcrozet/num_zero_one
Use the `Zero` and `One` traits from the `num` crate.
2015-04-18 15:01:47 +02:00
Sébastien Crozet 36223991c1 Remove all deprecated functions/traits. 2015-04-18 14:58:38 +02:00
Sébastien Crozet 313ca1b8ae Use the `Zero` and `One` traits from the `num` crate.
Remove our own definitions of those traits.
Also fixes test-related attributes to make them compile again.
2015-04-18 14:38:34 +02:00
Sébastien Crozet 87ded7fa1e Merge pull request #117 from aepsil0n/num-float
Use Float trait from num crate.
2015-04-05 18:17:33 +02:00
Eduard Bopp e453bfed47 Use Float trait from num crate 2015-04-04 17:53:25 +02:00
Eduard Bopp 0e7116e3bb Release version 0.2.10 2015-04-04 17:27:07 +02:00
Eduard Bopp f4aadb79ae Merge pull request #116 from aepsil0n/frac2pi
frac_2_sqrt_pi renaming
2015-04-04 17:19:16 +02:00
Eduard Bopp 9d428be8b4 Rename frac_2_sqrtpi -> frac_2_sqrt_pi 2015-04-04 17:05:30 +02:00
Anders Kaseorg e3962e8775 FRAC_2_SQRTPI was renamed to FRAC_2_SQRT_PI
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-04 16:58:11 +02:00
Eduard Bopp 49abb42980 Merge pull request #114 from andersk/neg
Remove Neg from BaseNum
2015-04-04 16:44:29 +02:00
Eduard Bopp 78b211ffb6 Merge pull request #112 from andersk/excise-core
Remove #![feature(core)]
2015-04-04 16:24:31 +02:00
Anders Kaseorg d47cdb5594 Remove Neg from BaseNum
As per https://github.com/rust-lang/rust/pull/23945, Neg is no longer
implemented for unsigned types.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-03 18:59:18 -04:00
Anders Kaseorg 005aebc498 Remove #![feature(core)]
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-02 04:53:55 -04:00
Anders Kaseorg 165e095a57 Remove use of num::cast
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-02 04:53:55 -04:00
Anders Kaseorg c1cbf7465d Remove use of PI_2
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-04-02 04:10:36 -04:00
Eduard Bopp f44b3381f4 Merge pull request #110 from andersk/annotation
Add type annotation required by rustc 2015-03-31
2015-04-01 13:34:54 +02:00
Anders Kaseorg 1cb3314064 Add type annotation required by rustc 2015-03-31
Resolves this error, which is fallout from
https://github.com/rust-lang/rust/pull/23673:

src/structs/dmat.rs:501:43: 501:74 error: type annotations required: cannot resolve `<f64 as core::ops::Div<_>>::Output == f64` [E0284]
src/structs/dmat.rs:501         let normalizer: N    = Cast::from(1.0f64 / Cast::from(self.nrows));
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2015-03-31 17:49:09 -04:00
Sébastien Crozet 1fc59cb0f5 Bump the version number. 2015-03-29 18:04:57 +02:00
Sébastien Crozet 8e13aae742 Merge pull request #109 from aepsil0n/stabilization
Partial stabilization to Rust 1.0
2015-03-29 16:41:31 +02:00
Eduard Bopp ef4a52d53b Remove unused feature unboxed_closures 2015-03-29 13:45:33 +02:00
Eduard Bopp de2351a441 Only use test feature in test configuration 2015-03-29 13:45:33 +02:00
Eduard Bopp 70b4def5cc Stop using unstable std_misc feature
It was only used for `Float::{max_value, min_value}` in non-necessary places,
so for now this helps stabilization for Rust 1.0.
2015-03-29 13:45:33 +02:00