![]() |
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 3349 of file MSLane.cpp.
| int MSLane::incoming_lane_priority_sorter::operator() | ( | const IncomingLaneInfo & | lane1, |
| const IncomingLaneInfo & | lane2 | ||
| ) | const |
comparing operator
Definition at line 3354 of file MSLane.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), MSLink::getFoeLinks(), Named::getID(), MSLane::getIncomingLanes(), MSLane::getLinkTo(), MSLane::getShape(), MSLane::isInternal(), MSLane::IncomingLaneInfo::lane, and MSLane::IncomingLaneInfo::viaLink.
|
private |
|
private |