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

Method GetReverseEdge

libs/routing/road_graph.cpp:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95Edge Edge::GetReverseEdge() const
96{
97 Edge edge = *this;
98 edge.m_forward = !edge.m_forward;
99 swap(edge.m_startJunction, edge.m_endJunction);
100 return edge;
101}
102
103bool Edge::SameRoadSegmentAndDirection(Edge const & r) const
104{

Callers 4

GetAllSuitablePathsMethod · 0.80
GetAllSuitablePathsMethod · 0.80
ReconstructPathMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 1

swapFunction · 0.50

Tested by 1

UNIT_TESTFunction · 0.64