![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Sorts lanes (their origin link) by the priority of their noninternal target edges or, if this doesn't yield an unambiguous result, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first) More...
Public Member Functions | |
int | operator() (const MSLink *link1, const MSLink *link2) const |
comparing operator More... | |
outgoing_lane_priority_sorter (const MSLane *sourceLane) | |
constructor More... | |
Private Attributes | |
double | myLaneDir |
Sorts lanes (their origin link) by the priority of their noninternal target edges or, if this doesn't yield an unambiguous result, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first)
|
explicit |
constructor
Definition at line 3284 of file MSLane.cpp.
int MSLane::outgoing_lane_priority_sorter::operator() | ( | const MSLink * | link1, |
const MSLink * | link2 | ||
) | const |
comparing operator
Definition at line 3288 of file MSLane.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), MSLane::getEdge(), Named::getID(), MSLink::getLane(), MSEdge::getPriority(), and MSLane::getShape().
|
private |