fixed general slerp formula

This commit is contained in:
Joshua Smith 2022-03-29 12:28:11 -05:00
parent 7a43827bb7
commit 686ed10624
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ impl<T:RealField, const D: usize> Rotation<T,D> where
transmute::<&Rotation3<T>,&Self>(&self3d.slerp_3d(other3d, t)).clone()
},
_ => self * (self/other).powf(t)
//the multiplication order matters here
_ => (other/self).powf(t) * self
}
}