![]() |
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 More... | |
| int | operator() (const IncomingLaneInfo &lane1, const IncomingLaneInfo &lane2) const |
| comparing operator More... | |
Private Member Functions | |
| incoming_lane_priority_sorter & | operator= (const incoming_lane_priority_sorter &) |
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 2605 of file MSLane.cpp.
| int MSLane::incoming_lane_priority_sorter::operator() | ( | const IncomingLaneInfo & | lane1, |
| const IncomingLaneInfo & | lane2 | ||
| ) | const |
comparing operator
Definition at line 2610 of file MSLane.cpp.
References PositionVector::angleAt2D(), GeomHelper::angleDiff(), MSLink::getFoeLinks(), Named::getID(), MSLane::getIncomingLanes(), MSLane::getLinkTo(), MSLane::getShape(), MSLane::isInternal(), MSLane::IncomingLaneInfo::lane, myLane, myLaneDir, and MSLane::IncomingLaneInfo::viaLink.
|
private |
|
private |
Definition at line 1364 of file MSLane.h.
Referenced by operator()().
|
private |
Definition at line 1365 of file MSLane.h.
Referenced by operator()().