diff --git a/src/core.rs b/src/core.rs index 316a288..d70e236 100644 --- a/src/core.rs +++ b/src/core.rs @@ -333,6 +333,16 @@ impl PointLike for Vec2 { } } +impl PointLike for IVec2 { + fn x(&self) -> f32 { + self.x as f32 + } + + fn y(&self) -> f32 { + self.y as f32 + } +} + impl PointLike for (i32, i32) { fn x(&self) -> f32 { self.0 as f32