From 2efb96de167ed1f3628f81de276e192a85a1315e Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Wed, 5 Dec 2012 18:10:51 +1000 Subject: [PATCH] Add todo, remove fixme --- src/angle.rs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/angle.rs b/src/angle.rs index 65a9275..1359471 100644 --- a/src/angle.rs +++ b/src/angle.rs @@ -11,15 +11,15 @@ use vec::Vec3; /** * The base trait for anglular units */ -pub trait Angle: Add - , Sub - , Mul - , Div - // , Div - , Modulo - // , Modulo - , Neg - , Eq, Ord { +pub trait Angle: Add, + Sub + Mul, + Div, + // Div, // TODO: not sure how to implement this, or if it is even possible... + Modulo, + // Modulo, // TODO: not sure how to implement this, or if it is even possible... + Neg, + Eq, Ord { static pure fn full_turn() -> self; static pure fn half_turn() -> self; static pure fn quadrant() -> self; @@ -39,7 +39,6 @@ pub trait Angle: Add pub enum Radians = T; -// FIXME: not sure why I need the Eq and Ord trait bounds, but Rust complains if I don't include them pub impl Radians: Angle { #[inline(always)] static pure fn full_turn() -> Radians { Radians(Float::two_pi()) } #[inline(always)] static pure fn half_turn() -> Radians { Radians(Float::pi()) }