| 282 | } |
| 283 | |
| 284 | bool WorldGeometry::lineIntersectsPoly(Line2F const& line, PolyF const& poly) const { |
| 285 | for (auto a : splitLine(line)) { |
| 286 | for (auto b : splitPoly(poly)) { |
| 287 | if (b.intersects(a)) { |
| 288 | return true; |
| 289 | } |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | return false; |
| 294 | } |
| 295 | |
| 296 | bool WorldGeometry::polyIntersectsPoly(PolyF const& polyA, PolyF const& polyB) const { |
| 297 | for (auto a : splitPoly(polyA)) { |