diff --git a/src/cgmath/matrix.rs b/src/cgmath/matrix.rs index cf9dc24..117ec26 100644 --- a/src/cgmath/matrix.rs +++ b/src/cgmath/matrix.rs @@ -64,7 +64,7 @@ impl Mat2 { } #[inline] - pub fn ident() -> Mat2 { + pub fn identity() -> Mat2 { Mat2::from_value(one()) } } @@ -108,7 +108,7 @@ impl Mat3 { } #[inline] - pub fn ident() -> Mat3 { + pub fn identity() -> Mat3 { Mat3::from_value(one()) } } @@ -154,14 +154,14 @@ impl Mat4 { } #[inline] - pub fn ident() -> Mat4 { + pub fn identity() -> Mat4 { Mat4::from_value(one()) } } -impl One for Mat2 { #[inline] fn one() -> Mat2 { Mat2::ident() } } -impl One for Mat3 { #[inline] fn one() -> Mat3 { Mat3::ident() } } -impl One for Mat4 { #[inline] fn one() -> Mat4 { Mat4::ident() } } +impl One for Mat2 { #[inline] fn one() -> Mat2 { Mat2::identity() } } +impl One for Mat3 { #[inline] fn one() -> Mat3 { Mat3::identity() } } +impl One for Mat4 { #[inline] fn one() -> Mat4 { Mat4::identity() } } array!(impl Mat2 -> [Vec2, ..2] _2) array!(impl Mat3 -> [Vec3, ..3] _3) @@ -449,7 +449,7 @@ for Mat4 // and essentially reduce [A|I] let mut A = self.clone(); - let mut I = Mat4::ident(); + let mut I = Mat4::identity(); for j in range(0u, 4u) { // Find largest element in col j