![]() |
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 | |
| outgoing_lane_priority_sorter (const MSLane *sourceLane) | |
| constructor | |
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 3644 of file MSLane.cpp.
References MSLane::getShape(), MSLane::MSLane(), and myLaneDir.
| int MSLane::outgoing_lane_priority_sorter::operator() | ( | const MSLink * | link1, |
| const MSLink * | link2 ) const |
comparing operator
Definition at line 3648 of file MSLane.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), MSLane::getEdge(), Named::getID(), MSLink::getLane(), MSEdge::getPriority(), MSLane::getShape(), MSLane::MSLane(), and myLaneDir.
|
private |
Definition at line 1740 of file MSLane.h.
Referenced by operator()(), and outgoing_lane_priority_sorter().