Merge pull request #2436 from hannobraun/point

Remove implementation of scalar multiplication for `Point`
This commit is contained in:
Hanno Braun 2024-07-31 20:26:21 +02:00 committed by GitHub
commit e67dc74f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -200,14 +200,6 @@ impl<const D: usize> ops::Sub<Point<D>> for &Point<D> {
} }
} }
impl<const D: usize> ops::Mul<f64> for Point<D> {
type Output = Self;
fn mul(self, rhs: f64) -> Self::Output {
self.to_na().mul(rhs).into()
}
}
impl<const D: usize> fmt::Debug for Point<D> { impl<const D: usize> fmt::Debug for Point<D> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.coords.fmt(f) self.coords.fmt(f)