Make vector addition generic

This commit is contained in:
Hanno Braun 2024-12-17 20:30:32 +01:00
parent b8c729e077
commit 68b999beac

View File

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