Make Point/Vector addition generic

This commit is contained in:
Hanno Braun 2024-12-17 20:33:14 +01:00
parent f237c4a84c
commit 71a0bb7a33

View File

@ -18,9 +18,9 @@ where
}
}
impl<T> ops::Add<T> for Point<3>
impl<T, const D: usize> ops::Add<T> for Point<D>
where
T: Into<Vector<3>>,
T: Into<Vector<D>>,
{
type Output = Self;