mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-23 18:46:41 +00:00
Make Point
/Vector
addition generic
This commit is contained in:
parent
f237c4a84c
commit
71a0bb7a33
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user