Update trait names
This commit is contained in:
parent
07bed0a9c1
commit
660c423d46
1 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ fn test_Mat2() {
|
||||||
// fuzzy_eq
|
// fuzzy_eq
|
||||||
// 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();
|
let ident: Mat2<float> = Mat2::identity();
|
||||||
|
|
||||||
assert ident.is_identity();
|
assert ident.is_identity();
|
||||||
|
@ -208,7 +208,7 @@ fn test_Mat3() {
|
||||||
0f, 0.5f, -2f,
|
0f, 0.5f, -2f,
|
||||||
0f, 0f, 1f);
|
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();
|
let ident: Mat3<float> = Mat3::identity();
|
||||||
|
|
||||||
assert option::unwrap(ident.inverse()) == ident;
|
assert option::unwrap(ident.inverse()) == ident;
|
||||||
|
@ -369,7 +369,7 @@ fn test_Mat4() {
|
||||||
4f, -8f, 4f, 8f,
|
4f, -8f, 4f, 8f,
|
||||||
-3f, 4f, 1f, -8f).mul_t(0.125f);
|
-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();
|
let ident: Mat4<float> = Mat4::identity();
|
||||||
|
|
||||||
assert option::unwrap(ident.inverse()) == ident;
|
assert option::unwrap(ident.inverse()) == ident;
|
||||||
|
|
Loading…
Reference in a new issue