MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / intersectsBox

Method intersectsBox

src/core/virtual_path.cpp:200–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200bool 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
217bool PathCoordVector::isPointInside(const MapCoordF& coord) const
218{

Callers

nothing calls this directly

Calls 1

lineIntersectsRectFunction · 0.85

Tested by

no test coverage detected