Brendan Zabarauskas
2cd6f402df
Move the dot method onto EuclideanVector
...
The Vector and EuclideanVector traits roughly line up with the concept of vector spaces and inner spaces respectively. It makes more sense to group `dot` with the other methods that depend on it.
2016-04-04 20:45:37 +10:00
Brendan Zabarauskas
84c2c0ff8a
Merge pull request #314 from bjz/angles
...
Angle updates
2016-04-04 07:49:17 +10:00
Brendan Zabarauskas
1905354d26
Fix spelling
2016-04-03 13:56:26 +10:00
Brendan Zabarauskas
1b63ed3e88
Update changelog
2016-04-03 13:52:07 +10:00
Brendan Zabarauskas
1d33c231e3
Improve the documentation for some angle methods
2016-04-03 13:49:58 +10:00
Brendan Zabarauskas
aa6fd71ab8
Move Angle::new to be implemented directly on angle types
...
This is more in keeping with most Rust APIs, and the other types in this library
2016-04-03 13:36:31 +10:00
Brendan Zabarauskas
40232ec063
Remove Angle::equiv
...
Thus relied on the == operator, which doesn't make sense for floats. It seems better to leave this up to clients to decide if they want to normalize.
2016-04-03 13:32:55 +10:00
Brendan Zabarauskas
0de8942748
Merge pull request #311 from bjz/rename-vector-length
...
Rename Vector::length to Vector::magnitude
2016-03-28 13:47:50 +11:00
Brendan Zabarauskas
a080040274
Merge pull request #307 from bjz/element-wise
...
Remove extraneous operator overloads on vectors, and add ElementWise trait
2016-03-27 18:41:37 +11:00
Brendan Zabarauskas
5f7e47371e
Merge remote-tracking branch 'origin/master' into element-wise
2016-03-27 16:43:20 +11:00
Brendan Zabarauskas
d1fc22fab7
Fix benches
2016-03-27 16:40:17 +11:00
Brendan Zabarauskas
3218046bfa
Merge pull request #309 from bjz/conv
...
Add constrained conversion functions
2016-03-27 16:38:59 +11:00
Brendan Zabarauskas
fb5228f14f
Clean up some function calls
2016-03-27 16:25:03 +11:00
Brendan Zabarauskas
c9155dd7d9
Update changelog
2016-03-27 16:24:31 +11:00
Brendan Zabarauskas
f7bc6dcc54
Rename Vector::length to Vector::magnitude
2016-03-27 16:17:11 +11:00
Brendan Zabarauskas
6c05339f69
Update changelog
2016-03-26 16:41:43 +11:00
Brendan Zabarauskas
813b4aa5c2
Add constrained conversion functions
2016-03-26 16:41:31 +11:00
Brendan Zabarauskas
352b8fe381
Remove obsolete benchmarks
2016-03-26 13:39:22 +11:00
Brendan Zabarauskas
98b6a740b6
Update changelog
2016-03-26 13:35:31 +11:00
Brendan Zabarauskas
8d10f1dc6d
Remove extraneous operator overloads on vectors, and add Elementwise trait
2016-03-26 13:28:49 +11:00
Brendan Zabarauskas
bf4637352e
Merge pull request #306 from bjz/add-prelude
...
Add prelude module for easy importing of common traits
2016-03-25 15:44:14 +11:00
Brendan Zabarauskas
31b8a91793
Update changelog
2016-03-25 15:30:44 +11:00
Brendan Zabarauskas
652ec87dd8
Add prelude module
2016-03-25 15:27:57 +11:00
Brendan Zabarauskas
4200b75c6d
Merge pull request #304 from bjz/repr-c
...
Mark some types as #[repr(C, packed)]
2016-03-25 12:52:29 +11:00
Brendan Zabarauskas
df89ec262c
Update changelog
2016-03-25 12:47:10 +11:00
Brendan Zabarauskas
3d55187a7d
Mark some types as #[repr(C, packed)]
...
Closes #296
2016-03-25 12:42:17 +11:00
Brendan Zabarauskas
49cac4d894
Merge pull request #303 from bjz/points
...
Improve documentation for the Point trait
2016-03-25 11:48:45 +11:00
Brendan Zabarauskas
667888a0c5
Improve documentation for the Point trait
2016-03-24 22:56:21 +11:00
Brendan Zabarauskas
a502ee9fca
Merge pull request #298 from bitshifter/docfix
...
Small doc fix for EuclideanVector trait
2016-02-18 08:25:10 +11:00
Cameron Hart
73c34e9f05
Small doc fix for EuclideanVector trait
2016-02-17 22:43:41 +11:00
Brendan Zabarauskas
9281295891
Merge pull request #295 from bitshifter/scalarops
...
Scalar arithmetic operators for Matrix types
2016-01-02 18:42:21 +11:00
Cameron Hart
e773da36d2
Removed constant only used on one place
2016-01-02 16:15:49 +11:00
Cameron Hart
24a21d5fc6
Added scalar arithmetic operators for Matrix types
2016-01-02 16:11:16 +11:00
Cameron Hart
15b14c1e87
Rename vector identifier to point
2016-01-02 16:10:35 +11:00
Brendan Zabarauskas
58cde94eb7
Merge pull request #293 from bitshifter/scalarops
...
Support for scalar on the lhs of arithmetic operators
2016-01-02 14:38:42 +11:00
Cameron Hart
9096e409d1
Added scalar arithmetic operators for Quaternions
2016-01-02 11:13:27 +11:00
Cameron Hart
3febc46d5a
Added scalar arithmetic operators for Point types
2016-01-02 10:14:47 +11:00
Cameron Hart
1e6f615f9e
Split arithmetic operator tests into per op tests
2016-01-02 09:12:13 +11:00
Cameron Hart
62b6c961a4
Test by-ref arithmetic operators against by-val results
2016-01-02 08:57:16 +11:00
Cameron Hart
043a63c45a
Expand vector aritmetic operator tests
...
Add test for vector on vector operators and different permutations
of vector references.
2016-01-02 00:18:48 +11:00
Cameron Hart
338c494735
Make macro usage more like existing style
2016-01-02 00:09:11 +11:00
Cameron Hart
7426d8d807
Support for scalar on the lhs of arithmetic operators
2016-01-01 18:05:32 +11:00
Brendan Zabarauskas
6cf7831275
Merge pull request #292 from bjz/debug-impls
...
Improve and add Debug impls
2015-12-29 22:07:22 +11:00
Brendan Zabarauskas
a1b6c1092c
Update changelog
2015-12-29 21:54:52 +11:00
Brendan Zabarauskas
429d2659fe
Improve fmt::Debug impls
2015-12-29 21:50:43 +11:00
Brendan Zabarauskas
2449a283a2
Merge pull request #291 from bjz/cleanup-matrix-tests
...
Clean up matrix tests
2015-12-29 16:03:26 +11:00
Brendan Zabarauskas
fb722e1dac
Clean up matrix tests
2015-12-29 15:49:01 +11:00
Brendan Zabarauskas
4cca70a457
Merge pull request #289 from AnthIste/readme-urls
...
Fix Travis and License URLs in README.md
2015-12-25 08:32:24 +11:00
AnthIste
b0fc6f0acb
Fix Travis and License URLs in README.md
2015-12-24 17:43:58 +02:00
Brendan Zabarauskas
8f46a524b6
Merge pull request #288 from bjz/AnthIste/readme-url-changes
...
Update GitHub links from cgmath-rs to cgmath
2015-12-24 10:00:40 +11:00