mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-28 13:06:33 +00:00
Make conversion to Point
generic
This commit is contained in:
parent
b75389d622
commit
f237c4a84c
@ -7,9 +7,9 @@ pub struct Point<const D: usize> {
|
||||
pub coords: Vector<D>,
|
||||
}
|
||||
|
||||
impl<T> From<T> for Point<3>
|
||||
impl<T, const D: usize> From<T> for Point<D>
|
||||
where
|
||||
T: Into<Vector<3>>,
|
||||
T: Into<Vector<D>>,
|
||||
{
|
||||
fn from(coords: T) -> Self {
|
||||
Self {
|
||||
|
Loading…
x
Reference in New Issue
Block a user