Workaround compilation error on nightly rust

This commit is contained in:
Brendan Zabarauskas 2017-04-14 23:35:52 +10:00
parent 613d2b7f23
commit b73180e908

View file

@ -630,7 +630,7 @@ impl<S: BaseFloat> Rotation<Point3<S>> for Quaternion<S> {
// same direction // same direction
if ulps_eq!(k_cos_theta, S::one()) { if ulps_eq!(k_cos_theta, S::one()) {
return Quaternion::one(); return Quaternion::<S>::one();
} }
let k = (a.magnitude2() * b.magnitude2()).sqrt(); let k = (a.magnitude2() * b.magnitude2()).sqrt();