mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
Make vector addition generic
This commit is contained in:
parent
b8c729e077
commit
68b999beac
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user