forked from M-Labs/nalgebra
fix for UnitComplex::slerp()
#1093
This commit is contained in:
parent
a46f172fe4
commit
27a349d282
@ -410,7 +410,8 @@ where
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn slerp(&self, other: &Self, t: T) -> Self {
|
||||
Self::new(self.angle() * (T::one() - t.clone()) + other.angle() * t)
|
||||
let delta = other / self;
|
||||
self * Self::new(delta.angle()*t)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user