From f4b6bf55726953c6ead1d7f8bc9ac4b0b4292265 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Fri, 28 Dec 2012 13:38:36 +1000 Subject: [PATCH] Comment edits --- src/funs/common.rs | 24 ++++++++++++------------ src/funs/triganomic.rs | 10 +++++++--- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/funs/common.rs b/src/funs/common.rs index 7bdf905..a237dd8 100644 --- a/src/funs/common.rs +++ b/src/funs/common.rs @@ -32,9 +32,9 @@ pub impl Vec2: Approx { } // #[inline(always)] - // pure fn ceil(&self) -> Vec2 { - // Vec2::new(roundEven(&self[0]), - // roundEven(&self[1])) + // pure fn round_even(&self) -> Vec2 { + // Vec2::new(round_even(&self[0]), + // round_even(&self[1])) // } #[inline(always)] @@ -73,10 +73,10 @@ pub impl Vec3: Approx { } // #[inline(always)] - // pure fn ceil(&self) -> Vec3 { - // Vec3::new(roundEven(&self[0]), - // roundEven(&self[1]), - // roundEven(&self[2])) + // pure fn round_even(&self) -> Vec3 { + // Vec3::new(round_even(&self[0]), + // round_even(&self[1]), + // round_even(&self[2])) // } #[inline(always)] @@ -120,11 +120,11 @@ pub impl Vec4: Approx { } // #[inline(always)] - // pure fn ceil(&self) -> Vec4 { - // Vec4::new(roundEven(&self[0]), - // roundEven(&self[1]), - // roundEven(&self[2]), - // roundEven(&self[3])) + // pure fn round_even(&self) -> Vec4 { + // Vec4::new(round_even(&self[0]), + // round_even(&self[1]), + // round_even(&self[2]), + // round_even(&self[3])) // } #[inline(always)] diff --git a/src/funs/triganomic.rs b/src/funs/triganomic.rs index ae18f3d..56fbc80 100644 --- a/src/funs/triganomic.rs +++ b/src/funs/triganomic.rs @@ -12,6 +12,8 @@ use numeric::types::float::Float; use vec::{Vec3, Vec2, Vec4}; +// see issue: https://github.com/mozilla/rust/issues/4208 + // // Trig // pub impl> Vec2: Trig> { @@ -83,9 +85,11 @@ use vec::{Vec3, Vec2, Vec4}; // } // } +// see issue: https://github.com/mozilla/rust/issues/4208 + // // InvTrig -// pub impl Vec2: InvTrig>> { +// pub impl Vec2: InvTrig>> { // #[inline(always)] // pure fn asin(&self) -> Vec2> { // Vec2::new(asin(&self[0]), @@ -105,7 +109,7 @@ use vec::{Vec3, Vec2, Vec4}; // } // } -// pub impl Vec3: InvTrig>> { +// pub impl Vec3: InvTrig>> { // #[inline(always)] // pure fn asin(&self) -> Vec3> { // Vec3::new(asin(&self[0]), @@ -128,7 +132,7 @@ use vec::{Vec3, Vec2, Vec4}; // } // } -// pub impl Vec4: InvTrig>> { +// pub impl Vec4: InvTrig>> { // #[inline(always)] // pure fn asin(&self) -> Vec4> { // Vec4::new(asin(&self[0]),