Brendan Zabarauskas
86c13ca14f
Switch to using num_traits crate from num
...
Fixes #336
2016-04-23 14:03:35 +10:00
Arvamer
b21ad34b8b
Fix assignment operators for angles
2016-04-20 12:17:42 +02:00
Brendan Zabarauskas
8dd2874b59
Move traits into common module
2016-04-19 20:51:40 +10:00
Brendan Zabarauskas
1905354d26
Fix spelling
2016-04-03 13:56:26 +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
3d55187a7d
Mark some types as #[repr(C, packed)]
...
Closes #296
2016-03-25 12:42:17 +11:00
Brendan Zabarauskas
429d2659fe
Improve fmt::Debug impls
2015-12-29 21:50:43 +11:00
Brendan Zabarauskas
59d5e6f53a
Implement most assignment operators
2015-12-22 22:34:34 +11:00
Brendan Zabarauskas
8c05db962a
Implement by-ref negations for matrices
2015-12-22 00:43:15 +11:00
Brendan Zabarauskas
519af35d71
Remove Angle % Angle::Unitless
2015-12-14 04:42:02 +11:00
Brendan Zabarauskas
db35af6ae9
Angle % Angle should return an Angle
2015-12-14 04:40:09 +11:00
Brendan Zabarauskas
1cc11d2c8b
Simplify method implementations using From::from
2015-12-13 23:51:46 +11:00
Brendan Zabarauskas
612be7fecc
Move free trigonometric functions onto Angle trait
2015-12-13 23:51:00 +11:00
Brendan Zabarauskas
5b9eeb15a0
Remove Debug constraint form Angle
2015-12-13 18:38:48 +11:00
Brendan Zabarauskas
a49462426b
Remove ScalarConv trait and Angle::from
2015-12-13 18:35:03 +11:00
Brendan Zabarauskas
a1f73ddf0d
Remove *_self methods from Angle
2015-12-13 18:13:11 +11:00
Brendan Zabarauskas
e76921881f
Remove operator methods on angles
2015-12-13 16:18:39 +11:00
Brendan Zabarauskas
369c1202c3
Fully impl operator permutations, and remove Zero and One impls
2015-12-13 15:54:10 +11:00
Brendan Zabarauskas
8f60f0a666
Angles should not implement Hash
...
Angles are implemented over floating point values - they will never be hashable.
2015-12-13 15:52:33 +11:00
Brendan Zabarauskas
981836626b
Make Angle's type parameter an associated type
2015-12-13 13:09:44 +11:00
Brendan Zabarauskas
0584bcac64
Make epsilon an associated type on ApproxEq
2015-11-03 14:00:39 +11:00
Brendan Zabarauskas
5023b6c01e
Consistently use associated functions throughout codebase
2015-09-30 09:32:25 +10:00
Pierre Krieger
9cd7f71875
Make functions in angle.rs more generic
2015-05-08 16:40:22 +02:00
Pierre Krieger
e5822e3864
Replace ToDeg/ToRad by From/Into
2015-05-06 16:27:02 +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
16302ffa20
Fixed the num crate
2015-04-24 23:28:31 -04:00
Dzmitry Malyshau
b56ad542b3
Fixed NumCast and angles
2015-04-04 21:32:12 -04:00
Dzmitry Malyshau
8db429acae
Using rust-lang/num
2015-04-04 21:19:11 -04:00
Jonathan Neuschäfer
4c527f8334
s/AUTHORS file/Cargo.toml file/
2015-03-18 17:51:03 +01:00
Colin Sherratt
64fedca8e9
Manually add rand trait
2015-03-14 22:54:02 -04:00
Pierre Krieger
8895654f92
Remove dependencies to rand and rand_macros
...
Conflicts:
src/cgmath.rs
2015-03-14 22:07:15 -04:00
Colin Sherratt
778a3c13aa
use the new rand_macros crate
2015-02-08 13:25:42 -05:00
Ty Overby
72d4460d81
rename fmt::Show to fmt::Debug
2015-01-23 15:01:24 -08:00
Colin Sherratt
e064ea0e59
int to isize
2015-01-09 16:28:33 -07:00
Colin Sherratt
c0ce271e39
Updated to latest rustc
2015-01-09 15:06:45 -07:00
Colin Sherratt
d6bb64fd65
Update for associated types changes
2015-01-04 18:56:01 -07:00
Connorcpu
22c2fe4755
Updated to rust nightly
2015-01-03 13:29:26 -08:00
Colin Sherratt
4bb12d6859
Switch to rustc_serialize
2014-12-26 16:18:29 -05:00
Jakob Fries
968adcd2cb
Update to match latest Neg trait.
2014-12-21 18:28:59 +01:00
Colin Sherratt
b0187ddeaa
Update to match the latest std::ops::* traits
2014-12-17 02:16:13 -05:00
Jameson Ernst
5726e6c7dc
Add deriving Copy to all structs that would previously be inferred to be Copy
...
Remove use of deprecated Equiv trait
Remove unsed attributes
2014-12-12 17:06:52 -08:00
Jameson Ernst
08f9354efc
Fix ambiguous trait call; Remove deprecated Float calls.
2014-11-24 20:04:34 -08:00
Eduard Bopp
9f8580eeca
Replace deprecated std::num traits
...
These traits are akin to the deprecated standard library traits (Zero, One,
Primitive) to keep everything running as before. However, for the long term a
better algebraic abstraction should be used/provided.
2014-11-20 16:28:02 +01: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
Sébastien Crozet
0bbefed4bc
Improve the benchmark suite.
...
As a side effect, this adds `Rand` deriving to the benchmarked strucures.
2014-11-07 16:23:10 +01:00
bachm
825f5f2975
deriving Encodable, Decodable for all structs
2014-08-23 14:34:33 +02:00
HeroesGrave
047dbefd6f
remove lifetime notations causing errors
2014-07-05 12:15:10 +12:00
Erick Tryzelaar
1c5b6f0b7a
Update to compile with rust (9f8149e)
2014-06-25 21:26:15 -07:00