mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-23 07:35:50 +00:00
Implement AddAssign
for Point
This commit is contained in:
parent
f835ba0cf5
commit
8fc40594a7
@ -164,6 +164,15 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<V, const D: usize> ops::AddAssign<V> for Point<D>
|
||||||
|
where
|
||||||
|
V: Into<Vector<D>>,
|
||||||
|
{
|
||||||
|
fn add_assign(&mut self, rhs: V) {
|
||||||
|
*self = *self + rhs;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<V, const D: usize> ops::Sub<V> for Point<D>
|
impl<V, const D: usize> ops::Sub<V> for Point<D>
|
||||||
where
|
where
|
||||||
V: Into<Vector<D>>,
|
V: Into<Vector<D>>,
|
||||||
|
Loading…
Reference in New Issue
Block a user