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

Method findPathCoordForIndex

src/core/objects/object.cpp:1058–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058PathCoord PathObject::findPathCoordForIndex(MapCoordVector::size_type index) const
1059{
1060 auto part = findPartForIndex(index);
1061 if (part != end(path_parts))
1062 {
1063 return *(std::lower_bound(begin(part->path_coords), end(part->path_coords), index, PathCoord::indexLessThanValue));
1064 }
1065 return path_parts.front().path_coords.front();
1066}
1067
1068bool PathObject::isCurveHandle(MapCoordVector::size_type index) const
1069{

Callers 3

startFollowingMethod · 0.80
updateCuttingLineMethod · 0.80
ObjectPathCoordMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected