impl PointLike for &GlobalTransform.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2022-09-13 10:06:04 -05:00
parent 08d4d7429c
commit 1837591ba5

View File

@ -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