Commit graph

84 commits

Author SHA1 Message Date
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
Corey Richardson c9bdf838a5 Update for Cargo 2014-06-23 23:49:29 -07:00
Brendan Zabarauskas ff336f0791 Switch to using numeric-rs for numeric type traits 2012-12-16 15:05:04 +10:00
Brendan Zabarauskas b429d91fcf Remove num::cast::cast function and num::cast::NumCast::from method 2012-12-13 11:10:53 +10:00
Brendan Zabarauskas bc9104fdb5 Implement FuzzyEq for Angle and Color types 2012-12-12 14:19:19 +10:00
Brendan Zabarauskas 3a3034b7b6 Fix typo 2012-12-12 13:25:01 +10:00
Brendan Zabarauskas 3abc1df753 Rename kinds module to types 2012-12-12 09:55:42 +10:00
Brendan Zabarauskas b6049b28e2 Remove comma separated inheritance lists 2012-12-10 10:38:41 +10:00
Brendan Zabarauskas 1a55784c81 Merge branch 'master' of https://github.com/luqmana/lmath-rs 2012-12-10 10:32:29 +10:00
Brendan Zabarauskas 4d48591e80 Documentation 2012-12-08 21:14:33 +10:00
Brendan Zabarauskas 6169ef0ee3 Use Float::pi() instead of f64::consts::pi 2012-12-08 21:12:37 +10:00
Brendan Zabarauskas 2e0521f4e5 Remove Euler type 2012-12-08 21:10:42 +10:00