mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-22 15:15:52 +00:00
Implement MulAssign
for Vector
This commit is contained in:
parent
f00be2b290
commit
b4c1775234
@ -323,6 +323,15 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<S, const D: usize> ops::MulAssign<S> for Vector<D>
|
||||
where
|
||||
S: Into<Scalar>,
|
||||
{
|
||||
fn mul_assign(&mut self, rhs: S) {
|
||||
*self = *self * rhs;
|
||||
}
|
||||
}
|
||||
|
||||
impl<S, const D: usize> ops::Div<S> for Vector<D>
|
||||
where
|
||||
S: Into<Scalar>,
|
||||
|
Loading…
Reference in New Issue
Block a user