Returns true if the two rectangles have any overlap.
| 95 | |
| 96 | /// Returns true if the two rectangles have any overlap. |
| 97 | bool overlaps(Rectangle b) |
| 98 | { |
| 99 | b.intersection(*this); |
| 100 | return b.valid() && b.area() > 0.f; |
| 101 | } |
| 102 | |
| 103 | /// Returns true if the Rectangle `b` is fully contained within this Rectangle. |
| 104 | bool contains(const Rectangle& b) |