![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Sorts lanes (IncomingLaneInfos) by their priority or, if this doesn't apply, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first). More...
Public Member Functions | |
| incoming_lane_priority_sorter (const MSLane *targetLane) | |
| constructor | |
| int | operator() (const IncomingLaneInfo &lane1, const IncomingLaneInfo &lane2) const |
| comparing operator | |
Private Attributes | |
| const MSLane *const | myLane |
| double | myLaneDir |
Sorts lanes (IncomingLaneInfos) by their priority or, if this doesn't apply, wrt. the angle difference magnitude relative to the target lane's angle (straight comes first).
|
explicit |
constructor
Definition at line 3566 of file MSLane.cpp.
References MSLane::getShape(), MSLane::MSLane(), myLane, and myLaneDir.
| int MSLane::incoming_lane_priority_sorter::operator() | ( | const IncomingLaneInfo & | lane1, |
| const IncomingLaneInfo & | lane2 ) const |
comparing operator
Definition at line 3571 of file MSLane.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), MSLink::getFoeLinks(), Named::getID(), MSLane::getIncomingLanes(), MSLane::getLinkTo(), MSLane::getShape(), MSLane::isInternal(), MSLane::IncomingLaneInfo::lane, MSLane::MSLane(), myLane, myLaneDir, and MSLane::IncomingLaneInfo::viaLink.
|
private |
Definition at line 1722 of file MSLane.h.
Referenced by incoming_lane_priority_sorter(), and operator()().
|
private |
Definition at line 1723 of file MSLane.h.
Referenced by incoming_lane_priority_sorter(), and operator()().