| 230 | } |
| 231 | |
| 232 | bool WorldGeometry::rectContains(RectF const& rect, Vec2F const& pos) const { |
| 233 | auto wpos = xwrap(pos); |
| 234 | for (auto const& r : splitRect(rect)) { |
| 235 | if (r.contains(wpos)) |
| 236 | return true; |
| 237 | } |
| 238 | return false; |
| 239 | } |
| 240 | |
| 241 | bool WorldGeometry::rectIntersectsRect(RectF const& rect1, RectF const& rect2) const { |
| 242 | for (auto const& r1 : splitRect(rect1)) { |