Skip to content

Commit

Permalink
Remove implementation of scalar mult for Point
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hannobraun committed Jul 31, 2024
1 parent f9cb056 commit 4f45008
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/fj-math/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.coords.fmt(f)
Expand Down

0 comments on commit 4f45008

Please sign in to comment.