| 249 | } |
| 250 | |
| 251 | RectF WorldGeometry::rectOverlap(RectF const& rect1, RectF const& rect2) const { |
| 252 | return rect1.overlap(RectF::withSize(nearestTo(rect1.min(), rect2.min()), rect2.size())); |
| 253 | } |
| 254 | |
| 255 | bool WorldGeometry::polyContains(PolyF const& poly, Vec2F const& pos) const { |
| 256 | auto wpos = xwrap(pos); |