MCPcopy Create free account
hub / github.com/comaps/comaps / IsPointOnPath

Method IsPointOnPath

tools/openlr/candidate_paths_getter.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool CandidatePathsGetter::Link::IsPointOnPath(geometry::PointWithAltitude const & point) const
51{
52 for (auto * l = this; l; l = l->m_parent.get())
53 {
54 if (l->m_edge.GetEndJunction() == point)
55 {
56 LOG(LDEBUG, ("A loop detected, skipping..."));
57 return true;
58 }
59 }
60
61 return false;
62}
63
64// CandidatePathsGetter ----------------------------------------------------------------------------
65bool CandidatePathsGetter::GetLineCandidatesForPoints(vector<LocationReferencePoint> const & points,

Callers 1

GetAllSuitablePathsMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected