diff --git a/src/angle.rs b/src/angle.rs index 403a887..6aa45a0 100644 --- a/src/angle.rs +++ b/src/angle.rs @@ -107,11 +107,6 @@ pub trait Angle where fn turn_div_4() -> Self; fn turn_div_6() -> Self; - #[inline] - fn equiv(&self, other: &Self) -> bool { - self.normalize() == other.normalize() - } - fn sin(self) -> Self::Unitless; fn cos(self) -> Self::Unitless; fn tan(self) -> Self::Unitless; diff --git a/tests/angle.rs b/tests/angle.rs index 6a5643d..c660547 100644 --- a/tests/angle.rs +++ b/tests/angle.rs @@ -15,7 +15,7 @@ extern crate cgmath; -use cgmath::{Angle, Rad, Deg, rad, deg}; +use cgmath::{Rad, Deg, rad, deg}; use cgmath::ApproxEq; #[test] @@ -36,14 +36,3 @@ fn conv() { let angle: Rad<_> = angle.into(); assert!(angle.approx_eq(&rad(30.0f64))); } - -#[test] -fn equiv() { - assert!(Deg::::full_turn().equiv(&-Deg::::full_turn())); - assert!(Deg::::turn_div_2().equiv(&-Deg::::turn_div_2())); - assert!((Deg::::turn_div_3() - Deg::::full_turn()).equiv(&Deg::::turn_div_3())); - - assert!(Rad::::full_turn().equiv(&-Rad::::full_turn())); - assert!(Rad::::turn_div_2().equiv(&-Rad::::turn_div_2())); - assert!((Rad::::turn_div_3() - Rad::::full_turn()).equiv(&Rad::::turn_div_3())); -}