Comment edits
This commit is contained in:
parent
6485ff070e
commit
f4b6bf5572
2 changed files with 19 additions and 15 deletions
|
@ -32,9 +32,9 @@ pub impl<T:Copy Approx> Vec2<T>: Approx {
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[inline(always)]
|
// #[inline(always)]
|
||||||
// pure fn ceil(&self) -> Vec2<T> {
|
// pure fn round_even(&self) -> Vec2<T> {
|
||||||
// Vec2::new(roundEven(&self[0]),
|
// Vec2::new(round_even(&self[0]),
|
||||||
// roundEven(&self[1]))
|
// round_even(&self[1]))
|
||||||
// }
|
// }
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
@ -73,10 +73,10 @@ pub impl<T:Copy Approx> Vec3<T>: Approx {
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[inline(always)]
|
// #[inline(always)]
|
||||||
// pure fn ceil(&self) -> Vec3<T> {
|
// pure fn round_even(&self) -> Vec3<T> {
|
||||||
// Vec3::new(roundEven(&self[0]),
|
// Vec3::new(round_even(&self[0]),
|
||||||
// roundEven(&self[1]),
|
// round_even(&self[1]),
|
||||||
// roundEven(&self[2]))
|
// round_even(&self[2]))
|
||||||
// }
|
// }
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
@ -120,11 +120,11 @@ pub impl<T:Copy Approx> Vec4<T>: Approx {
|
||||||
}
|
}
|
||||||
|
|
||||||
// #[inline(always)]
|
// #[inline(always)]
|
||||||
// pure fn ceil(&self) -> Vec4<T> {
|
// pure fn round_even(&self) -> Vec4<T> {
|
||||||
// Vec4::new(roundEven(&self[0]),
|
// Vec4::new(round_even(&self[0]),
|
||||||
// roundEven(&self[1]),
|
// round_even(&self[1]),
|
||||||
// roundEven(&self[2]),
|
// round_even(&self[2]),
|
||||||
// roundEven(&self[3]))
|
// round_even(&self[3]))
|
||||||
// }
|
// }
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
|
|
@ -12,6 +12,8 @@ use numeric::types::float::Float;
|
||||||
|
|
||||||
use vec::{Vec3, Vec2, Vec4};
|
use vec::{Vec3, Vec2, Vec4};
|
||||||
|
|
||||||
|
// see issue: https://github.com/mozilla/rust/issues/4208
|
||||||
|
|
||||||
// // Trig
|
// // Trig
|
||||||
|
|
||||||
// pub impl<T:Copy Float, A:Copy Angle<T>> Vec2<A>: Trig<Vec2<T>> {
|
// 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
|
// // 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)]
|
// #[inline(always)]
|
||||||
// pure fn asin(&self) -> Vec2<Radians<T>> {
|
// pure fn asin(&self) -> Vec2<Radians<T>> {
|
||||||
// Vec2::new(asin(&self[0]),
|
// 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)]
|
// #[inline(always)]
|
||||||
// pure fn asin(&self) -> Vec3<Radians<T>> {
|
// pure fn asin(&self) -> Vec3<Radians<T>> {
|
||||||
// Vec3::new(asin(&self[0]),
|
// 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)]
|
// #[inline(always)]
|
||||||
// pure fn asin(&self) -> Vec4<Radians<T>> {
|
// pure fn asin(&self) -> Vec4<Radians<T>> {
|
||||||
// Vec4::new(asin(&self[0]),
|
// Vec4::new(asin(&self[0]),
|
||||||
|
|
Loading…
Reference in a new issue