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

Function IsUTurn

libs/routing/index_graph.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using namespace std;
28
29bool IsUTurn(Segment const & u, Segment const & v)
30{
31 return u.GetFeatureId() == v.GetFeatureId() && u.GetSegmentIdx() == v.GetSegmentIdx() &&
32 u.IsForward() != v.IsForward();
33}
34
35bool IsBoarding(bool prevIsFerry, bool nextIsFerry)
36{

Callers 4

GetNeighboringEdgeMethod · 0.85
GetPenaltiesMethod · 0.85
IsUTurnAndRestrictedMethod · 0.85

Calls 3

GetFeatureIdMethod · 0.45
GetSegmentIdxMethod · 0.45
IsForwardMethod · 0.45

Tested by

no test coverage detected