Egor Larionov
768b6b71f0
Add a doc explanation to each swizzle function.
2017-09-30 16:37:07 -07:00
Egor Larionov
b700a8db59
Added sanity checks for the new swizzle operators
2017-09-30 15:18:31 -07:00
Egor Larionov
76f00b7941
Extend swizzles to increase the dimension of a vector.
...
For example this is now valid:
```
let p2 = Point2::new(1.0, 2.0);
let p3 = p2.xyx(); // producing Point3 { x:1.0, y:2.0, z:1.0 }
```
2017-09-30 15:09:03 -07:00
Egor Larionov
cc7047555d
Complete the list of generated swizzle operators.
2017-09-30 14:41:17 -07:00
Egor Larionov
985db6b604
Initial implementation of swizzle operators using a build script that generates
...
a macro, which is included in macros.rs and subsequently used to implement
swizzle operators in vectors and points
2017-09-30 01:38:03 -07:00
Brendan Zabarauskas
3543ac0274
Merge pull request #427 from Osspial/cast_option
...
Modify cast functions to return Option
2017-08-22 19:32:57 +10:00
Brendan Zabarauskas
bba6285f4d
Merge pull request #420 from DataAnalysisCosby/master
...
Added project_on to InnerSpace
2017-08-22 19:31:07 +10:00
Matthew Plant
1f0cc9aad4
Merge branch 'master' of github.com:DataAnalysisCosby/cgmath
2017-08-21 13:48:19 -07:00
Matthew Plant
bc9c5b7f79
Added project_on to InnerSpace
2017-08-21 13:47:15 -07:00
Osspial
bd1b2667bd
Fix building with SIMD enabled
2017-08-16 16:47:45 -04:00
Osspial
a6abd5bf02
Modify cast() functions to return Option
2017-08-16 16:21:51 -04:00
Brendan Zabarauskas
7823f46b68
Merge pull request #425 from Osspial/master
...
Implement num_traits::Bounded for Points, Vectors, and Angles
2017-08-12 12:57:36 +10:00
Osspial
66ee40e4c7
Re-export num_traits::Bounded
2017-08-09 23:47:35 -04:00
Osspial
6981d0cacd
Implement Bounded for angles
2017-08-08 19:17:16 -04:00
Osspial
1e98ef4dd4
Add Bounded impl for Vectors and Points
2017-08-08 19:11:14 -04:00
Brendan Zabarauskas
b270f9fb52
Merge pull request #423 from hclarke/patch-1
...
update glium to version 0.17
2017-08-01 12:00:03 +10:00
hclarke
f94888c879
update glium to version 0.17
...
old version of cocoa wasn't building on nightly (it's a dependency of glium->glutin->cocoa and glium->glutin->winit->cocoa on osx)
updating glium fixes it
2017-07-31 21:37:30 -04:00
Brendan Zabarauskas
cbeba0883c
Merge pull request #422 from hclarke/master
...
added len function to Array
2017-08-01 08:35:53 +10:00
harrison
42cb73de8e
fixed len for simd
2017-07-31 16:54:40 -04:00
harrison
9b84d804ae
added len function to Array
2017-07-31 16:13:15 -04:00
Brendan Zabarauskas
67f82eef06
Update CHANGELOG
2017-07-30 23:10:56 +10:00
Brendan Zabarauskas
343361a0d6
Merge pull request #418 from kvark/mint2
...
Mint flavour integration
2017-07-30 22:47:59 +10:00
Brendan Zabarauskas
34b3f7b7ed
Merge pull request #421 from pengowen123/quaternion-cast
...
Add cast method to Quaternion
2017-07-16 01:44:38 +10:00
Owen Sanchez
51b3d2d477
Add cast method to Quaternion
2017-07-13 12:24:30 -07:00
Brendan Zabarauskas
17d8a223f7
Merge pull request #417 from kvark/mint
...
Features refactor
2017-07-01 14:28:53 +10:00
Matthew Plant
cea162df8c
Added project_on to InnerSpace
2017-06-16 11:52:51 -07:00
Dzmitry Malyshau
d72fc08826
Mint flavour
2017-06-06 18:07:38 -04:00
Dzmitry Malyshau
7a21125c55
Refined serde dependencies
2017-06-06 16:48:55 -04:00
Dzmitry Malyshau
087336d0c0
Refinded simd feature
2017-06-06 16:44:13 -04:00
Brendan Zabarauskas
b87401be28
Merge pull request #414 from brendanzab/fix-matrix-inversions
...
Fix matrix inversions for small determinants
2017-05-13 19:11:57 +10:00
Brendan Zabarauskas
a0e370ff7b
Fix matrix inversions for small determinants
...
Closes #210
2017-05-13 18:51:59 +10:00
Brendan Zabarauskas
09bcdc5cba
Merge pull request #413 from brendanzab/remove-partial-ord
...
Remove PartialOrd
2017-05-13 18:27:59 +10:00
Brendan Zabarauskas
b6199ca702
Remove PartialOrd
...
Closes #396
This removes `PartialOrd` and makes `BaseNum` and `BaseFloat` simple trait aliases. This should allow more types to be used as parameters in the cgmath data types at the expense of removing `Array::min` and `Array::max`.
2017-05-06 17:12:52 +10:00
Brendan Zabarauskas
14277a07b1
Merge pull request #411 from brendanzab/version-bump
...
Bump cargo version to v0.14.1
2017-05-02 21:43:26 +10:00
Brendan Zabarauskas
f2943d77db
Bump cargo version
2017-05-02 21:19:47 +10:00
Brendan Zabarauskas
cb31bbdef6
Clean up some type projections
2017-05-02 21:15:32 +10:00
Brendan Zabarauskas
bb7d342126
Merge pull request #410 from kennytm/workaround-rust-41478
...
Workaround rust-lang/rust#41478 .
2017-05-02 21:05:08 +10:00
kennytm
f524d40403
Workaround rust-lang/rust#41478 .
...
Replace all `impl .. for Struct<<A as Angle>::Unitless>` by
`Struct<A::Unitless>`. This allows -Zsave-analysis to work on nightly, and
I think this is more readable too.
2017-05-02 01:15:46 +08:00
Brendan Zabarauskas
bfd9fc1e66
Merge pull request #408 from brendanzab/version-bump
...
Bump cargo version to v0.14.0
2017-04-26 22:42:57 +10:00
Brendan Zabarauskas
536b5c5c36
Bump cargo version
2017-04-26 22:42:15 +10:00
Brendan Zabarauskas
bc26aa1d52
Simplify authors list
...
Sorry - this was too hard to maintain :(
2017-04-26 22:36:24 +10:00
Brendan Zabarauskas
1bd0cb285e
Merge pull request #407 from brendanzab/sum-product-cleanups
...
Sum and Product cleanups
2017-04-26 22:30:25 +10: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
Brendan Zabarauskas
89c0da2a9e
Merge pull request #406 from mathstuf/iter-sum-impl
...
iter traits: impl `iter::{Sum, Product}`
2017-04-26 01:25:30 +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
Brendan Zabarauskas
adbf511bc5
Merge pull request #405 from ebkalderon/master
...
Update serialization to serde v1.0
2017-04-23 10:17:59 +10:00
Eyal Kalderon
6717b4714b
Update serialization to serde v1.0
2017-04-22 18:31:50 -04:00
Brendan Zabarauskas
da6e5437ea
Merge pull request #403 from brendanzab/improve-ci-performance
...
Improve ci build parallelization
2017-04-16 18:38:56 +10:00
Brendan Zabarauskas
6ebb0eeb11
Improve ci build parallelization
2017-04-16 17:57:20 +10:00