Begin slimming down PointLike.

This commit is contained in:
Nolan Darilek 2024-12-04 12:23:19 -06:00
parent 2379ee6900
commit 8dc4de0bd1

View File

@ -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) { impl PointLike for (i32, i32) {
fn x(&self) -> f32 { fn x(&self) -> f32 {
self.0 as f32 self.0 as f32