diff --git a/crates/fj-math/src/point.rs b/crates/fj-math/src/point.rs index 90c090f95..301863d6d 100644 --- a/crates/fj-math/src/point.rs +++ b/crates/fj-math/src/point.rs @@ -200,6 +200,15 @@ impl ops::Sub> for &Point { } } +impl ops::SubAssign for Point +where + V: Into>, +{ + fn sub_assign(&mut self, v: V) { + *self = *self - v.into(); + } +} + impl fmt::Debug for Point { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.coords.fmt(f)