Update trait names

This commit is contained in:
Brendan Zabarauskas 2012-12-04 14:07:44 +10:00
parent 07bed0a9c1
commit 660c423d46

View file

@ -78,7 +78,7 @@ fn test_Mat2() {
// fuzzy_eq
// eq
// let ident: Mat2<float> = NumericMatrixNxN::identity(); // FIXME: there's something wrong with static functions here!
// let ident: Mat2<float> = Matrix::identity(); // FIXME: there's something wrong with static functions here!
let ident: Mat2<float> = Mat2::identity();
assert ident.is_identity();
@ -208,7 +208,7 @@ fn test_Mat3() {
0f, 0.5f, -2f,
0f, 0f, 1f);
// let ident: Mat3<float> = NumericMatrixNxN::identity(); // FIXME: there's something wrong with static functions here!
// let ident: Mat3<float> = Matrix::identity(); // FIXME: there's something wrong with static functions here!
let ident: Mat3<float> = Mat3::identity();
assert option::unwrap(ident.inverse()) == ident;
@ -369,7 +369,7 @@ fn test_Mat4() {
4f, -8f, 4f, 8f,
-3f, 4f, 1f, -8f).mul_t(0.125f);
// let ident: Mat4<float> = NumericMatrixNxN::identity();
// let ident: Mat4<float> = Matrix::identity();
let ident: Mat4<float> = Mat4::identity();
assert option::unwrap(ident.inverse()) == ident;