Fix incorrect operator in sub_assign impl
This commit is contained in:
parent
b2b715c020
commit
0a9c51da82
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ macro_rules! impl_point {
|
||||||
fn add_assign(&mut self, vector) { $(self.$field += vector.$field);+ }
|
fn add_assign(&mut self, vector) { $(self.$field += vector.$field);+ }
|
||||||
});
|
});
|
||||||
impl_assignment_operator!(<S: BaseNum> SubAssign<$VectorN<S>> for $PointN<S> {
|
impl_assignment_operator!(<S: BaseNum> SubAssign<$VectorN<S>> for $PointN<S> {
|
||||||
fn sub_assign(&mut self, vector) { $(self.$field += vector.$field);+ }
|
fn sub_assign(&mut self, vector) { $(self.$field -= vector.$field);+ }
|
||||||
});
|
});
|
||||||
|
|
||||||
impl_operator!(<S: BaseNum> Sub<$PointN<S> > for $PointN<S> {
|
impl_operator!(<S: BaseNum> Sub<$PointN<S> > for $PointN<S> {
|
||||||
|
|
Loading…
Reference in a new issue