impl PointLike
for &GlobalTransform
.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
08d4d7429c
commit
1837591ba5
10
src/core.rs
10
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 {
|
impl PointLike for Vec2 {
|
||||||
fn x(&self) -> f32 {
|
fn x(&self) -> f32 {
|
||||||
self.x
|
self.x
|
||||||
|
|
Loading…
Reference in New Issue
Block a user