Brendan Zabarauskas
574dd3b972
Run rustfmt on most files
2018-01-03 13:16:40 +11:00
Osspial
a6abd5bf02
Modify cast() functions to return Option
2017-08-16 16:21:51 -04:00
Owen Sanchez
51b3d2d477
Add cast method to Quaternion
2017-07-13 12:24:30 -07:00
Brendan Zabarauskas
ff2d15e0ff
Implement Sum for Angle
2017-04-26 21:56:02 +10:00
Brendan Zabarauskas
77260934a1
Clean up Sum and Product impls
...
This is for consistency with other impls
2017-04-26 21:56:02 +10:00
Ben Boeckel
240559b941
iter traits: impl iter::{Sum, Product}
...
This adds `Sum` trait for the `MatrixN`, `VectorN`, `Quaternion`
structures and the `Product` trait for `MatrixN`, `BasisN` and
`Quaternion`.
It also add constraints on the `Rotation` and `SquareMatrix` to require
the `Product` trait and `VectorSpace` to require `Sum`.
2017-04-25 11:01:18 -04:00
andystanton
cd9e873739
Fix between_vectors for opposite vectors
2017-04-14 00:23:02 +01:00
Luxko
64924b954d
[WIP]Add basic SIMD support
...
- Add an opt-in SIMD support for the module. The feature requires crate
`simd` and specialization, thus can only be enabled under nightly. Under
the given benchmark certain operations were able to be up to 60% faster.
Currently the supported types as well as operations are highly limited.
- Clean up some deadly tests. Also add new tests for SIMD.
2017-02-25 07:26:11 +08:00
Andrew Dudney
0f8a96d9b8
Changed over to the approx crate. Currently breaks rotation's doc tests.
2016-08-22 09:21:22 -06:00
Andrew Dudney
3d3b9c96ca
Moved angle types to tuple structs
2016-07-31 20:40:31 -07:00
Andrew Dudney
1b77875cc3
Fixed tests, now most use deg, and none use deg(x).into()
2016-07-26 17:53:16 -07:00
Dzmitry Malyshau
55c212bde1
Styling fixes to the quaternion arc code
2016-07-05 21:30:13 -04:00
Dzmitry Malyshau
f555074a44
Quaternion closest arc
2016-07-03 00:23:46 -04: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
0259acb87f
Switch to an Euler angle type for defining rotations
2016-04-23 16:56:07 +10:00
Cameron Hart
9096e409d1
Added scalar arithmetic operators for Quaternions
2016-01-02 11:13:27 +11:00
Brendan Zabarauskas
fb722e1dac
Clean up matrix tests
2015-12-29 15:49:01 +11:00
Pierre Krieger
8ab8d7551d
Replace ToMatrix* by Into
2015-05-06 16:27:02 +02:00
Dzmitry Malyshau
498df01729
Fixed all the warnings, compile issues, and tests
2015-04-04 22:31:18 -04:00
Dzmitry Malyshau
b36039a6ee
Fixed the tests
2015-03-25 22:14:17 -04:00
Jonathan Neuschäfer
4c527f8334
s/AUTHORS file/Cargo.toml file/
2015-03-18 17:51:03 +01:00
Colin Sherratt
662c7d7f68
cleanup some warnings around features
2015-02-08 13:36:33 -05:00
Colin Sherratt
bc89f14250
Fix tests
2015-01-09 15:30:19 -07:00
Colin Sherratt
c7270a9077
Update to latest rustc
2015-01-07 15:34:42 -07:00
Jameson Ernst
12ec7318d0
Remove deprecated Float use from tests.
2014-11-24 20:24:04 -08:00
Brendan Zabarauskas
1371f75165
Update for rustc 0.13.0-nightly
...
There are still some deprecation errors in the doc tests left
2014-11-16 01:59:43 +11:00
Tomaka17
4fcfde13de
fail! -> panic!
2014-10-30 10:11:33 +01:00
Colin Sherratt
0f0b960211
Added to_euler which allows moving from to and from euler coordinates.
...
I did not have much luck getting the old from_eular logic work the way I
expected so I updated the implementation to match my sources.
I believe this changed the order of the axis, I am unsure of what they were
before.
2014-10-13 21:05:49 -04:00
Brendan Zabarauskas
379dc499ec
Publicly re-export everything from the root crate
...
Closes #100
2014-08-16 14:53:54 +10:00
Brendan Zabarauskas
8e5500d581
Switch to cargo
2014-08-11 16:15:14 +10:00