mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-21 15:02:51 +00:00
Divide-assign point by vector
This commit is contained in:
parent
39ad2e8cfd
commit
c76f58afe4
@ -264,6 +264,12 @@ impl<const D: usize> ops::Div<Vector<D>> for Point<D> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<const D: usize> ops::DivAssign<Vector<D>> for Point<D> {
|
||||
fn div_assign(&mut self, v: Vector<D>) {
|
||||
*self = *self / v
|
||||
}
|
||||
}
|
||||
|
||||
impl<const D: usize> fmt::Debug for Point<D> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
self.coords.fmt(f)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user