From 8673cd67017451c238e64dfc972f73dc6c1eaaa9 Mon Sep 17 00:00:00 2001 From: maikklein Date: Sun, 16 Jun 2013 02:08:16 +0200 Subject: [PATCH] Fixing vec2.perp_dot and vec3.angle --- src/vec2.rs | 2 +- src/vec3.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vec2.rs b/src/vec2.rs index c94c4f0..5694d2d 100644 --- a/src/vec2.rs +++ b/src/vec2.rs @@ -269,7 +269,7 @@ impl Vec2 { #[inline] pub fn angle(&self, other: &Vec2) -> T { - self.perp_dot(other).atan2(self.dot(other)) + self.perp_dot(other).atan2(&self.dot(other)) } #[inline] diff --git a/src/vec3.rs b/src/vec3.rs index 1ceff1f..bda3878 100644 --- a/src/vec3.rs +++ b/src/vec3.rs @@ -293,7 +293,7 @@ impl Vec3 { #[inline] pub fn angle(&self, other: &Vec3) -> T { - self.cross(other).length().atan2(self.dot(other)) + self.cross(other).length().atan2(&self.dot(other)) } #[inline]