From ca432e972832f3aed1c4e60be988cb08957d6d56 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Tue, 3 Sep 2013 17:14:27 +1000 Subject: [PATCH] Use `Float` for trait bounds instead of `Real + ApproxEq` --- src/cgmath/vector.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cgmath/vector.rs b/src/cgmath/vector.rs index 4f928a4..fed143a 100644 --- a/src/cgmath/vector.rs +++ b/src/cgmath/vector.rs @@ -152,7 +152,7 @@ impl Vec3 { /// 2-dimensional and 3-dimensional vectors. pub trait EuclideanVector < - S: Clone + Real + ApproxEq, + S: Clone + Float, Slice > : Vector @@ -201,14 +201,14 @@ pub trait EuclideanVector } } -impl> EuclideanVector for Vec2 { +impl EuclideanVector for Vec2 { #[inline] fn angle(&self, other: &Vec2) -> S { atan2(self.perp_dot(other), self.dot(other)) } } -impl> EuclideanVector for Vec3 { +impl EuclideanVector for Vec3 { #[inline] fn angle(&self, other: &Vec3) -> S { atan2(self.cross(other).length(), self.dot(other))