Merge pull request #15 from MaikKlein/master
Fixing vec2.perp_Dot and vec3.angle
This commit is contained in:
commit
3d5a7ed7ef
2 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue