diff --git a/src/geometry/transform_ops.rs b/src/geometry/transform_ops.rs index 41bf80f4..0e2b4826 100644 --- a/src/geometry/transform_ops.rs +++ b/src/geometry/transform_ops.rs @@ -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; } }