Commit graph

1546 commits

Author SHA1 Message Date
Brendan Zabarauskas
d9675f7c7e Formatting 2015-09-30 20:47:38 +10:00
Brendan Zabarauskas
e845fd9b8c Reduce scope of dot_matrix4! macro 2015-09-30 20:06:17 +10:00
Brendan Zabarauskas
902215b532 Implement binary operators for matrices
We can't yet remove the operator methods, due to rust-lang/rust#20671
2015-09-30 19:01:30 +10:00
Brendan Zabarauskas
8b6fb94685 Implement binary operators for points
We can't yet remove the operator methods, due to rust-lang/rust#20671
2015-09-30 18:23:01 +10:00
Brendan Zabarauskas
be5c6fb55b Compress point formatting 2015-09-30 18:09:40 +10:00
Brendan Zabarauskas
b7b1f6c9cb Implement binary operators for quaternions 2015-09-30 18:05:20 +10:00
Brendan Zabarauskas
e3e06297a0 Implement by-ref operators for vectors, and remove by-value implementations
We can't yet remove the operator methods, due to rust-lang/rust#20671

This also removes the implementations of `Zero` and `One` for vectors.
2015-09-30 17:37:52 +10:00
Brendan Zabarauskas
4374dea564 Merge pull request #235 from bjz/use-associated-fns
Consistently use associated functions throughout codebase
2015-09-30 09:37:34 +10:00
Brendan Zabarauskas
7a3f4f9e2d Fix formatting 2015-09-30 09:33:44 +10:00
Brendan Zabarauskas
5023b6c01e Consistently use associated functions throughout codebase 2015-09-30 09:32:25 +10:00
Brendan Zabarauskas
046ff64b72 Merge pull request #234 from bjz/fix-quat-mul
Fix Quaternion::mul_self_q
2015-09-29 18:39:36 +10:00
Brendan Zabarauskas
494f2b65ad Fix Quaternion::mul_self_q
Fixes #224

I haven't really thought about whether there is a faster way to do this, but at least it is fixed.
2015-09-29 18:36:41 +10:00
Colin Sherratt
5dd8bc7ef3 Merge pull request #233 from bjz/remove-map-method
Remove {Array1, Array2}::map method
2015-09-29 02:22:51 -04:00
Colin Sherratt
4a1a97aaaa Merge pull request #232 from bjz/move-matrix-constructors
Move some methods onto the Matrix trait
2015-09-29 02:20:40 -04:00
Brendan Zabarauskas
4be95bcb7d Remove {Array1, Array2}::map method
This doesn't seem to be used anywhere - not sure how useful it is. It isn't really a proper `map` anyway, because it mutates `self`.
2015-09-29 09:47:57 +10:00
Brendan Zabarauskas
3ea0b3c5b2 Move some methods onto the Matrix trait
Now we can call them like `Matrix4::identity()`! Yay!
2015-09-29 09:34:41 +10:00
Brendan Zabarauskas
b5084225f3 Merge pull request #231 from bjz/add-conversion-tests
Add conversion tests for vectors, points, and quaternions
2015-09-27 17:23:48 +10:00
Brendan Zabarauskas
7f73c2cdd9 Add conversion tests for vectors, points, and quaternions 2015-09-27 17:20:02 +10:00
Brendan Zabarauskas
17f51d4989 Merge pull request #230 from bjz/remove-fixedarray-trait
Remove FixedArray trait in favour of std::convert
2015-09-27 13:03:26 +10:00
Brendan Zabarauskas
69caaf48b6 Add index tests 2015-09-27 13:01:14 +10:00
Brendan Zabarauskas
aff340dc1e Add range index operators 2015-09-21 07:56:03 +10:00
Brendan Zabarauskas
0ce28fbe10 Remove FixedArray trait in favour of std::convert
Fixes #225
2015-09-21 06:49:33 +10:00
Brendan Zabarauskas
75af609121 Merge pull request #229 from bjz/use-travis-cargo
Use travis-cargo for documentation updates
2015-09-20 16:07:01 +10:00
Brendan Zabarauskas
076ee866d7 Comment out nightly testing for now due to 'does not have these features: ' error coming from travis-cargo 2015-09-20 16:04:06 +10:00
Brendan Zabarauskas
fde34bde39 Update cargo and readme links, and add crates.io badge 2015-09-20 15:42:10 +10:00
Brendan Zabarauskas
7c22880aee Use travis-cargo for documentation updating 2015-09-20 15:32:35 +10:00
Brendan Zabarauskas
96905f577f Merge pull request #228 from csherratt/master
Bump version number (breaking changes, so none-patch)
2015-09-20 14:44:03 +10:00
Colin Sherratt
e9e81cc5ed Bump version number (breaking changes, so none-patch) 2015-09-12 13:04:29 -04:00
Colin Sherratt
dc31f7cab9 Merge pull request #227 from TimNN/rfc-1214-fallout
fix rfc 1214 fallout
2015-09-12 12:55:51 -04:00
Tim Neumann
0469935161 fix rfc 1214 fallout 2015-09-12 13:07:22 +02:00
tomaka
aebe5fd9bf Merge pull request #221 from tomaka/bump
Bump to 0.2.0
2015-05-11 09:02:54 +02:00
Pierre Krieger
fb8cd931d8 Bump to 0.2.0 2015-05-11 09:01:40 +02:00
Dzmitry Malyshau
c58b93837f Merge pull request #219 from kvark/master
Version bump
2015-05-10 18:39:11 -04:00
Dzmitry Malyshau
507e53b63f Version bump 2015-05-10 18:38:44 -04:00
Dzmitry Malyshau
d2975cc068 Merge pull request #218 from tomaka/angle-more-generic
Make functions in angle.rs more generic
2015-05-08 10:50:40 -04:00
Pierre Krieger
9cd7f71875 Make functions in angle.rs more generic 2015-05-08 16:40:22 +02:00
Dzmitry Malyshau
6e560fbd03 Merge pull request #216 from tomaka/into
Replace most To* traits by Into
2015-05-08 10:16:00 -04:00
Pierre Krieger
1a6dc52e51 Remove ToQuaternion 2015-05-06 16:27:03 +02:00
Pierre Krieger
6ce250b10d Remove ToBasis2/ToBasis3 in favor of Into 2015-05-06 16:27:03 +02:00
Pierre Krieger
151c6c6e64 Replace as_matrix* by impl AsRef<Matrix 2015-05-06 16:27:02 +02:00
Pierre Krieger
8ab8d7551d Replace ToMatrix* by Into 2015-05-06 16:27:02 +02:00
Pierre Krieger
e5822e3864 Replace ToDeg/ToRad by From/Into 2015-05-06 16:27:02 +02:00
Dzmitry Malyshau
84fa175901 Merge pull request #215 from tomaka/new-rust-1.0
Merge the rust-1.0 branch into master
2015-05-06 10:20:11 -04:00
Pierre Krieger
508a45405b Test for both the beta and the nightly 2015-05-06 16:15:44 +02:00
Pierre Krieger
8a34332f5f Rustup 2015-05-06 15:57:15 +02:00
Ryan Stewart
a058142a2c Get cgmath building in beta by removing remaining unstable feature use. Benching is unstable and therefore only available on nightly; removed from travis in the interim. 2015-05-06 15:57:15 +02:00
Dzmitry Malyshau
e63ce6f9e2 Switched Travis to rust-1.0 2015-05-06 15:56:11 +02:00
Dzmitry Malyshau
e29bb4c899 Merge pull request #211 from kvark/num
Fixed the num crate
2015-04-25 19:58:04 -04:00
Dzmitry Malyshau
16302ffa20 Fixed the num crate 2015-04-24 23:28:31 -04:00
tomaka
3bd90171e9 Merge pull request #208 from tomaka/bump
Bump version
2015-04-24 13:15:39 +02:00