Comment edits

This commit is contained in:
Brendan Zabarauskas 2012-12-28 13:38:36 +10:00
parent 6485ff070e
commit f4b6bf5572
2 changed files with 19 additions and 15 deletions

View file

@ -32,9 +32,9 @@ pub impl<T:Copy Approx> Vec2<T>: Approx {
}
// #[inline(always)]
// pure fn ceil(&self) -> Vec2<T> {
// Vec2::new(roundEven(&self[0]),
// roundEven(&self[1]))
// pure fn round_even(&self) -> Vec2<T> {
// Vec2::new(round_even(&self[0]),
// round_even(&self[1]))
// }
#[inline(always)]
@ -73,10 +73,10 @@ pub impl<T:Copy Approx> Vec3<T>: Approx {
}
// #[inline(always)]
// pure fn ceil(&self) -> Vec3<T> {
// Vec3::new(roundEven(&self[0]),
// roundEven(&self[1]),
// roundEven(&self[2]))
// pure fn round_even(&self) -> Vec3<T> {
// Vec3::new(round_even(&self[0]),
// round_even(&self[1]),
// round_even(&self[2]))
// }
#[inline(always)]
@ -120,11 +120,11 @@ pub impl<T:Copy Approx> Vec4<T>: Approx {
}
// #[inline(always)]
// pure fn ceil(&self) -> Vec4<T> {
// Vec4::new(roundEven(&self[0]),
// roundEven(&self[1]),
// roundEven(&self[2]),
// roundEven(&self[3]))
// pure fn round_even(&self) -> Vec4<T> {
// Vec4::new(round_even(&self[0]),
// round_even(&self[1]),
// round_even(&self[2]),
// round_even(&self[3]))
// }
#[inline(always)]

View file

@ -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<T:Copy Float, A:Copy Angle<T>> Vec2<A>: Trig<Vec2<T>> {
@ -83,9 +85,11 @@ use vec::{Vec3, Vec2, Vec4};
// }
// }
// see issue: https://github.com/mozilla/rust/issues/4208
// // InvTrig
// pub impl<T:Copy Float InvTrig> Vec2<T>: InvTrig<Vec2<Radians<T>>> {
// pub impl<T:Copy Float> Vec2<T>: InvTrig<Vec2<Radians<T>>> {
// #[inline(always)]
// pure fn asin(&self) -> Vec2<Radians<T>> {
// Vec2::new(asin(&self[0]),
@ -105,7 +109,7 @@ use vec::{Vec3, Vec2, Vec4};
// }
// }
// pub impl<T:Copy Float InvTrig> Vec3<T>: InvTrig<Vec3<Radians<T>>> {
// pub impl<T:Copy Float> Vec3<T>: InvTrig<Vec3<Radians<T>>> {
// #[inline(always)]
// pure fn asin(&self) -> Vec3<Radians<T>> {
// Vec3::new(asin(&self[0]),
@ -128,7 +132,7 @@ use vec::{Vec3, Vec2, Vec4};
// }
// }
// pub impl<T:Copy Float InvTrig> Vec4<T>: InvTrig<Vec4<Radians<T>>> {
// pub impl<T:Copy Float> Vec4<T>: InvTrig<Vec4<Radians<T>>> {
// #[inline(always)]
// pure fn asin(&self) -> Vec4<Radians<T>> {
// Vec4::new(asin(&self[0]),