Update name of type parameter

This commit is contained in:
Hanno Braun 2025-01-09 18:29:07 +01:00
parent ed95fb7a16
commit 7958712869

View File

@ -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 }