mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
fix rect issue with touching
This commit is contained in:
parent
ac64d0a36f
commit
b492f3d43d
|
@ -661,7 +661,7 @@ impl<T: Number> Rect<T> {
|
|||
self.position.x < other.position.x + other.size.x
|
||||
&& self.position.x + self.size.x > other.position.x
|
||||
&& self.position.y < other.position.y + other.size.y
|
||||
&& self.position.y + self.size.y > self.position.y
|
||||
&& self.position.y + self.size.y > other.position.y
|
||||
}
|
||||
|
||||
pub fn overlapping_rect(&self, other: Rect<T>) -> Rect<T> {
|
||||
|
|
Loading…
Reference in a new issue