| 294 | } |
| 295 | |
| 296 | bool WorldGeometry::polyIntersectsPoly(PolyF const& polyA, PolyF const& polyB) const { |
| 297 | for (auto a : splitPoly(polyA)) { |
| 298 | for (auto b : splitPoly(polyB)) { |
| 299 | if (b.intersects(a)) |
| 300 | return true; |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | return false; |
| 305 | } |
| 306 | |
| 307 | bool WorldGeometry::rectIntersectsCircle(RectF const& rect, Vec2F const& center, float radius) const { |
| 308 | if (rect.contains(center)) |