diff options
Diffstat (limited to 'core/src/point.rs')
| -rw-r--r-- | core/src/point.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/core/src/point.rs b/core/src/point.rs index 3714aa2f..7d93538f 100644 --- a/core/src/point.rs +++ b/core/src/point.rs @@ -46,6 +46,12 @@ impl From<[u16; 2]> for Point {      }  } +impl From<Point> for [f32; 2] { +    fn from(point: Point) -> [f32; 2] { +        [point.x, point.y] +    } +} +  impl std::ops::Add<Vector> for Point {      type Output = Self; | 
