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

Method isPointInsideArea

src/core/objects/object.cpp:2508–2518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2506}
2507
2508bool PathObject::isPointInsideArea(const MapCoordF& coord) const
2509{
2510 update();
2511 bool inside = false;
2512 for (const auto& part : path_parts)
2513 {
2514 if (part.isPointInside(coord))
2515 inside = !inside;
2516 }
2517 return inside;
2518}
2519
2520double PathObject::calcMaximumDistanceTo(
2521 MapCoordVector::size_type start_index,

Callers 3

operator()Method · 0.80
processMethod · 0.80
executeForLineMethod · 0.80

Calls 1

isPointInsideMethod · 0.60

Tested by

no test coverage detected