Ported to Rust-0.8
This commit is contained in:
parent
6380bb538d
commit
e056f7d43e
2 changed files with 5 additions and 5 deletions
|
@ -85,8 +85,8 @@ pub trait Point
|
|||
array!(impl<S> Point2<S> -> [S, ..2] _2)
|
||||
array!(impl<S> Point3<S> -> [S, ..3] _3)
|
||||
|
||||
impl<S: Primitive> Point<S, Vec2<S>, [S, ..2]> for Point2<S>;
|
||||
impl<S: Primitive> Point<S, Vec3<S>, [S, ..3]> for Point3<S>;
|
||||
impl<S: Primitive> Point<S, Vec2<S>, [S, ..2]> for Point2<S> {}
|
||||
impl<S: Primitive> Point<S, Vec3<S>, [S, ..3]> for Point3<S> {}
|
||||
|
||||
impl<S> ToStr for Point2<S> {
|
||||
fn to_str(&self) -> ~str {
|
||||
|
|
|
@ -155,9 +155,9 @@ impl<S: Primitive> Neg<Vec2<S>> for Vec2<S> { #[inline] fn neg(&self) -> Vec2<S>
|
|||
impl<S: Primitive> Neg<Vec3<S>> for Vec3<S> { #[inline] fn neg(&self) -> Vec3<S> { build(|i| self.i(i).neg()) } }
|
||||
impl<S: Primitive> Neg<Vec4<S>> for Vec4<S> { #[inline] fn neg(&self) -> Vec4<S> { build(|i| self.i(i).neg()) } }
|
||||
|
||||
impl<S: Primitive> Vector<S, [S, ..2]> for Vec2<S>;
|
||||
impl<S: Primitive> Vector<S, [S, ..3]> for Vec3<S>;
|
||||
impl<S: Primitive> Vector<S, [S, ..4]> for Vec4<S>;
|
||||
impl<S: Primitive> Vector<S, [S, ..2]> for Vec2<S> {}
|
||||
impl<S: Primitive> Vector<S, [S, ..3]> for Vec3<S> {}
|
||||
impl<S: Primitive> Vector<S, [S, ..4]> for Vec4<S> {}
|
||||
|
||||
/// Operations specific to numeric two-dimensional vectors.
|
||||
impl<S: Primitive> Vec2<S> {
|
||||
|
|
Loading…
Reference in a new issue