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

Function OnEdge

libs/routing/road_graph.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace
22{
23bool OnEdge(geometry::PointWithAltitude const & p, Edge const & ab)
24{
25 auto const & a = ab.GetStartJunction();
26 auto const & b = ab.GetEndJunction();
27 return m2::IsPointOnSegmentEps(p.GetPoint(), a.GetPoint(), b.GetPoint(), 1e-9);
28}
29
30void SplitEdge(Edge const & ab, geometry::PointWithAltitude const & p, vector<Edge> & edges)
31{

Callers 1

AddFakeEdgesMethod · 0.85

Calls 2

IsPointOnSegmentEpsFunction · 0.85
GetPointMethod · 0.45

Tested by

no test coverage detected