Fix projective * point multiplication.

The scaling did not occur at the right time.
This commit is contained in:
sebcrozet 2018-09-20 20:01:48 +02:00 committed by Sébastien Crozet
parent b5249c55ba
commit 08685122ea

View File

@ -145,7 +145,7 @@ md_impl_all!(
let n = normalizer.tr_dot(&rhs.coords) + unsafe { *self.matrix().get_unchecked(D::dim(), D::dim()) };
if !n.is_zero() {
return transform * (rhs / n) + translation;
return (transform * rhs + translation) / n;
}
}