Commit graph

42 commits

Author SHA1 Message Date
Tomaka17 1b5da61ccb Update for rustc 0e784e168 2014-09-16 23:26:11 +0000 2014-09-18 16:19:26 +02:00
bachm 825f5f2975 deriving Encodable, Decodable for all structs 2014-08-23 14:34:33 +02:00
Ben Foppa 784b9d8fa1 Fix inverted asserts 2014-07-18 11:55:53 -04: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 c0a5b29af1 Move files into submodules 2013-07-08 17:02:04 +10:00
Brendan Zabarauskas 6fb6d57175 Use the Clone trait instead of Copy and switch from the copy keyword to calling the clone method.
impl_approx! is broken with a borrow issue. The library does not compile yet. Sorry!
2013-06-29 16:38:55 +10:00
maikklein 547ac400fd explicit copy 2013-06-29 02:25:07 +02:00
Brendan Zabarauskas 9d99347bbf Add types from cgmath 2013-06-16 17:34:09 +10:00
Brendan Zabarauskas 11e1623dad Rename macros file 2013-06-16 17:32:48 +10:00
Brendan Zabarauskas f20eca5cc5 Use macros and higher-order functions to reduce code repetition 2013-06-16 15:21:32 +10:00
Brendan Zabarauskas f226ab2262 Re-organise modules 2013-06-12 10:02:39 +10:00
Brendan Zabarauskas 21ae345adc Be more selective about inlining, #[inline(always)] -> #[inline] for functions other than map 2013-06-12 07:50:16 +10:00
Brendan Zabarauskas 17975b798d De-traitify types, fix tests 2013-06-11 09:02:25 +10:00
Brendan Zabarauskas 3721167cdc Fix std imports 2013-06-06 12:38:23 +10:00
Brendan Zabarauskas d3bfcc194e Add license/copyright notices to source files 2013-06-01 08:01:01 +10:00
Brendan Zabarauskas ebf6a9529d Use the new ApproxEq trait in core 2013-05-08 01:00:06 +10:00
Brendan Zabarauskas 0cb3314bf8 Use the new core::num traits and remove numeric dependency 2013-05-06 13:52:22 +10:00
Brendan Zabarauskas a6acab93c3 Simplify trait bounds
Requires the latest version of numeric
2013-04-15 07:09:43 +10:00
Brendan Zabarauskas 887544b0b2 Fix ortho 2013-04-07 23:18:32 +10:00
Brendan Zabarauskas a57935ccea Clean up 'orthographic' function and rename to 'ortho' 2013-04-07 23:04:54 +10:00
Mikko Perttunen 4293d9aa1b Add function projection::orthographic. 2013-04-07 13:06:26 +03:00
Mikko Perttunen 5cf091656d Fix projection::perspective. 2013-04-07 12:55:03 +03:00
Brendan Zabarauskas 9116917607 Make trait names more succinct 2013-04-02 16:12:13 +11:00
Brendan Zabarauskas c906578c69 Remove NumCast type parameters
The NumCast type parameter is no longer needed as it is a constraint of numeric::Number
2013-04-02 11:59:33 +11:00
Brendan Zabarauskas 449705b760 Use core::num::{Zero, One, NumCast} traits for 'zero', 'one' and 'cast' methods 2013-04-02 11:25:05 +11:00
Brendan Zabarauskas 27603dd6bd Remove instances of 'pure' 2013-03-28 21:35:51 +11:00
Brian Heylin 8b94369a38 updated syntax and added type bounds, scope ownership issues remain 2013-03-28 10:45:43 +01:00
Brendan Zabarauskas ff185b373c Update FuzzyEq impls 2013-02-10 09:42:06 +11:00
Brendan Zabarauskas d7f5efadbd Remove anonymous impls on types and transfer functionality to traits
Unfortunately this causes Rust's type inference to struggle, but this is a problem with the rust compiler and hopefully this will improve over time. Users are encouraged to use the type aliases and static method wrappers included with each module.
2013-01-29 20:26:48 +11:00
Brendan Zabarauskas ddc617c925 Updates due to changes in numeric-rs 2013-01-28 09:22:15 +11:00
Brendan Zabarauskas bc30f193e7 Move projection.rs to funs module 2012-11-07 12:38:44 +10:00
Brendan Zabarauskas 2904be296e Reduce casting of zero value 2012-11-04 14:28:17 +10:00
Brendan Zabarauskas 5080853cbe Reorganise modules 2012-11-02 10:10:27 +10:00
Brendan Zabarauskas 35058611f3 Rename and move constructors 2012-11-01 17:41:42 +10:00
Brendan Zabarauskas bf6bf8b3e6 Make library generic 2012-11-01 11:34:38 +10:00
Brendan Zabarauskas 819c092321 Change inline attributes to inline(always) 2012-10-30 12:55:20 +10:00
Brendan Zabarauskas 5d8319fff0 Fix collision of omath::vec and core::vec 2012-10-29 21:53:25 +10:00
Brendan Zabarauskas 3df7d557bd Bring code into line with recent updates to Rust 2012-09-24 12:54:24 +10:00
Brendan Zabarauskas 015f0d8eb1 OCD formatting 2012-09-08 12:41:04 +10:00
Brendan Zabarauskas f5b46e2459 Fix circular imports and subsequent build errors 2012-09-08 00:17:26 +10:00
Brendan Zabarauskas aed74ae3c9 initial commit 2012-09-07 20:48:47 +10:00