|
SUMO - Simulation of Urban MObility
|
#include <NBContHelper.h>
Public Member Functions | |
| edge_similar_direction_sorter (const NBEdge *const e) | |
| constructor | |
| int | operator() (NBEdge *e1, NBEdge *e2) const |
| comparing operation | |
Private Attributes | |
| SUMOReal | myAngle |
| the angle to find the edge with the opposite direction | |
edge_similar_direction_sorter Class to sort edges by their angle in relation to the given edge The resulting list should have the edge in the most similar direction to the given edge as her first entry
Definition at line 224 of file NBContHelper.h.
| NBContHelper::edge_similar_direction_sorter::edge_similar_direction_sorter | ( | const NBEdge *const | e | ) | [inline, explicit] |
constructor
Definition at line 227 of file NBContHelper.h.
| int NBContHelper::edge_similar_direction_sorter::operator() | ( | NBEdge * | e1, |
| NBEdge * | e2 | ||
| ) | const [inline] |
comparing operation
Definition at line 231 of file NBContHelper.h.
References NBEdge::getAngle(), GeomHelper::getMinAngleDiff(), myAngle, and SUMOReal.
SUMOReal NBContHelper::edge_similar_direction_sorter::myAngle [private] |
the angle to find the edge with the opposite direction
Definition at line 239 of file NBContHelper.h.
Referenced by operator()().