diff --git a/experiments/2024-12-09/src/math/point.rs b/experiments/2024-12-09/src/math/point.rs index f6df29252..37dd2f655 100644 --- a/experiments/2024-12-09/src/math/point.rs +++ b/experiments/2024-12-09/src/math/point.rs @@ -38,3 +38,12 @@ impl ops::Sub> for Point { self.coords - other.coords } } + +impl ops::Sub> for Point { + type Output = Point; + + fn sub(self, other: Vector) -> Self::Output { + let coords = self.coords - other; + Self { coords } + } +}