fix rect issue with touching

This commit is contained in:
Corwin Kuiper 2021-10-30 12:24:43 +01:00
parent ac64d0a36f
commit b492f3d43d

View file

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