mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-26 01:12:10 +00:00
Update name of type parameter
This commit is contained in:
parent
ed95fb7a16
commit
7958712869
@ -18,13 +18,13 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T, const D: usize> ops::Add<T> for Point<D>
|
impl<V, const D: usize> ops::Add<V> for Point<D>
|
||||||
where
|
where
|
||||||
T: Into<Vector<D>>,
|
V: Into<Vector<D>>,
|
||||||
{
|
{
|
||||||
type Output = Self;
|
type Output = Self;
|
||||||
|
|
||||||
fn add(self, other: T) -> Self::Output {
|
fn add(self, other: V) -> Self::Output {
|
||||||
let other = other.into();
|
let other = other.into();
|
||||||
let coords = self.coords + other;
|
let coords = self.coords + other;
|
||||||
Self { coords }
|
Self { coords }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user