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

Function GetIterOnRoad

generator/mini_roundabout_transformer.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44feature::FeatureBuilder::PointSeq::iterator GetIterOnRoad(m2::PointD const & point,
45 feature::FeatureBuilder::PointSeq & road)
46{
47 return std::find_if(road.begin(), road.end(), [&point](m2::PointD const & pointOnRoad)
48 { return AlmostEqualAbs(pointOnRoad, point, kMwmPointAccuracy); });
49}
50} // namespace
51
52MiniRoundaboutTransformer::MiniRoundaboutTransformer(std::vector<MiniRoundaboutInfo> const & data,

Callers 2

AddRoundaboutToRoadMethod · 0.85
ProcessRoundaboutsMethod · 0.85

Calls 3

AlmostEqualAbsFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected