| 315 | } |
| 316 | |
| 317 | bool WorldGeometry::lineIntersectsCircle(Line2F const& line, Vec2F const& center, float radius) const { |
| 318 | for (auto const& sline : splitLine(line)) { |
| 319 | if (sline.distanceTo(nearestTo(sline.center(), center)) <= radius) |
| 320 | return true; |
| 321 | } |
| 322 | return false; |
| 323 | } |
| 324 | |
| 325 | Maybe<Vec2F> WorldGeometry::lineIntersectsPolyAt(Line2F const& line, PolyF const& poly) const { |
| 326 | for (auto a : splitLine(line, true)) { |
nothing calls this directly
no test coverage detected