diff --git a/src/core.rs b/src/core.rs index ca7bb4a..68c5504 100644 --- a/src/core.rs +++ b/src/core.rs @@ -398,6 +398,16 @@ impl PointLike for GlobalTransform { } } +impl PointLike for &GlobalTransform { + fn x(&self) -> f32 { + self.translation().x + } + + fn y(&self) -> f32 { + self.translation().y + } +} + impl PointLike for Vec2 { fn x(&self) -> f32 { self.x