diff --git a/tests/mat.rs b/tests/mat.rs index a38adf7c..07dcddf1 100644 --- a/tests/mat.rs +++ b/tests/mat.rs @@ -127,7 +127,7 @@ fn test_inv_mat6() { fn test_rotation2() { for _ in (0us .. 10000) { let randmat: na::Rot2 = na::one(); - let ang = Vec1::new(na::abs(&random::()) % BaseFloat::pi()); + let ang = Vec1::new(na::abs(&random::()) % ::pi()); assert!(na::approx_eq(&na::rotation(&na::append_rotation(&randmat, &ang)), &ang)); } @@ -145,7 +145,7 @@ fn test_inv_rotation3() { for _ in (0us .. 10000) { let randmat: Rot3 = na::one(); let dir: Vec3 = random(); - let ang = na::normalize(&dir) * (na::abs(&random::()) % BaseFloat::pi()); + let ang = na::normalize(&dir) * (na::abs(&random::()) % ::pi()); let rot = na::append_rotation(&randmat, &ang); assert!(na::approx_eq(&(na::transpose(&rot) * rot), &na::one()));