Fix projective * point multiplication.
The scaling did not occur at the right time.
This commit is contained in:
parent
b5249c55ba
commit
08685122ea
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue