| 198 | } |
| 199 | |
| 200 | bool PathCoordVector::intersectsBox(const QRectF& box) const |
| 201 | { |
| 202 | bool result = false; |
| 203 | if (!empty()) |
| 204 | { |
| 205 | auto last_pos = front().pos; |
| 206 | result = std::any_of(begin()+1, end(), [&box, &last_pos](const PathCoord& pc) |
| 207 | { |
| 208 | auto pos = pc.pos; |
| 209 | auto result = lineIntersectsRect(box, last_pos, pos); /// \todo Implement this here, used nowhere else |
| 210 | last_pos = pos; |
| 211 | return result; |
| 212 | }); |
| 213 | } |
| 214 | return result; |
| 215 | } |
| 216 | |
| 217 | bool PathCoordVector::isPointInside(const MapCoordF& coord) const |
| 218 | { |
nothing calls this directly
no test coverage detected