Merge pull request #15 from MaikKlein/master

Fixing vec2.perp_Dot and vec3.angle
This commit is contained in:
Brendan Zabarauskas 2013-06-15 17:11:31 -07:00
commit 3d5a7ed7ef
2 changed files with 2 additions and 2 deletions

View file

@ -269,7 +269,7 @@ impl<T:Copy + Real> Vec2<T> {
#[inline]
pub fn angle(&self, other: &Vec2<T>) -> T {
self.perp_dot(other).atan2(self.dot(other))
self.perp_dot(other).atan2(&self.dot(other))
}
#[inline]

View file

@ -293,7 +293,7 @@ impl<T:Copy + Real> Vec3<T> {
#[inline]
pub fn angle(&self, other: &Vec3<T>) -> T {
self.cross(other).length().atan2(self.dot(other))
self.cross(other).length().atan2(&self.dot(other))
}
#[inline]