Remove implementation of scalar mult for Point

There's no clear interpretation. I don't think it makes sense. And it
seems it wasn't used anywhere in the code base anyway.
This commit is contained in:
Hanno Braun 2024-07-31 19:54:50 +02:00
parent f9cb056b8c
commit 4f450088ee

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)