De-mode index overloads

This commit is contained in:
Brendan Zabarauskas 2012-10-07 16:42:47 +10:00
parent 9e3f1d6252
commit 7b0b955ef5
3 changed files with 7 additions and 7 deletions

View file

@ -182,7 +182,7 @@ pub impl Mat2: Matrix<float, Vec2> {
pub impl Mat2: Index<uint, Vec2> {
#[inline]
pure fn index(+i: uint) -> Vec2 {
pure fn index(i: uint) -> Vec2 {
self.data[i]
}
}
@ -431,7 +431,7 @@ pub impl Mat3: Matrix3<Vec3> {
pub impl Mat3: Index<uint, Vec3> {
#[inline]
pure fn index(+i: uint) -> Vec3 {
pure fn index(i: uint) -> Vec3 {
self.data[i]
}
}
@ -678,7 +678,7 @@ pub impl Mat4: Matrix4<Vec3, Vec4> {
pub impl Mat4: Index<uint, Vec4> {
#[inline]
pure fn index(+i: uint) -> Vec4 {
pure fn index(i: uint) -> Vec4 {
self.data[i]
}
}

View file

@ -174,7 +174,7 @@ pub impl Quat: Quaternion<float> {
pub impl Quat: Index<uint, float> {
#[inline]
pure fn index(+i: uint) -> float {
pure fn index(i: uint) -> float {
self.data[i]
}
}

View file

@ -217,7 +217,7 @@ pub impl Vec2: Vector<float> {
pub impl Vec2: Index<uint, float> {
#[inline]
pure fn index(+i: uint) -> float {
pure fn index(i: uint) -> float {
self.data[i]
}
}
@ -411,7 +411,7 @@ pub impl Vec3: Vector<float> {
pub impl Vec3: Index<uint, float> {
#[inline]
pure fn index(+i: uint) -> float {
pure fn index(i: uint) -> float {
self.data[i]
}
}
@ -614,7 +614,7 @@ pub impl Vec4: Vector<float> {
pub impl Vec4: Index<uint, float> {
#[inline]
pure fn index(+i: uint) -> float {
pure fn index(i: uint) -> float {
self.data[i]
}
}