Rename vector identifier to point
This commit is contained in:
parent
9096e409d1
commit
15b14c1e87
1 changed files with 3 additions and 3 deletions
|
@ -196,13 +196,13 @@ macro_rules! impl_point {
|
||||||
macro_rules! impl_scalar_ops {
|
macro_rules! impl_scalar_ops {
|
||||||
($PointN:ident<$S:ident> { $($field:ident),+ }) => {
|
($PointN:ident<$S:ident> { $($field:ident),+ }) => {
|
||||||
impl_operator!(Mul<$PointN<$S>> for $S {
|
impl_operator!(Mul<$PointN<$S>> for $S {
|
||||||
fn mul(scalar, vector) -> $PointN<$S> { $PointN::new($(scalar * vector.$field),+) }
|
fn mul(scalar, point) -> $PointN<$S> { $PointN::new($(scalar * point.$field),+) }
|
||||||
});
|
});
|
||||||
impl_operator!(Div<$PointN<$S>> for $S {
|
impl_operator!(Div<$PointN<$S>> for $S {
|
||||||
fn div(scalar, vector) -> $PointN<$S> { $PointN::new($(scalar / vector.$field),+) }
|
fn div(scalar, point) -> $PointN<$S> { $PointN::new($(scalar / point.$field),+) }
|
||||||
});
|
});
|
||||||
impl_operator!(Rem<$PointN<$S>> for $S {
|
impl_operator!(Rem<$PointN<$S>> for $S {
|
||||||
fn rem(scalar, vector) -> $PointN<$S> { $PointN::new($(scalar % vector.$field),+) }
|
fn rem(scalar, point) -> $PointN<$S> { $PointN::new($(scalar % point.$field),+) }
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue