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
1 changed files with 1 additions and 1 deletions

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()) }; let n = normalizer.tr_dot(&rhs.coords) + unsafe { *self.matrix().get_unchecked(D::dim(), D::dim()) };
if !n.is_zero() { if !n.is_zero() {
return transform * (rhs / n) + translation; return (transform * rhs + translation) / n;
} }
} }