![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <NBContHelper.h>
Public Member Functions | |
edge_similar_direction_sorter (const NBEdge *const e, bool outgoing=true) | |
constructor More... | |
int | operator() (const NBEdge *e1, const NBEdge *e2) const |
comparing operation More... | |
Private Member Functions | |
double | angleDiff (const double angle1, const double angle2) const |
Private Attributes | |
double | myAngle |
bool | myCompareOutgoing |
the angle to find the edge with the opposite direction More... | |
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 its first entry
Definition at line 219 of file NBContHelper.h.
|
inlineexplicit |
constructor
Definition at line 222 of file NBContHelper.h.
|
inlineprivate |
Definition at line 242 of file NBContHelper.h.
Referenced by operator()().
|
inline |
comparing operation
Definition at line 228 of file NBContHelper.h.
References angleDiff(), NBEdge::getNumericalID(), NBEdge::getShapeEndAngle(), NBEdge::getShapeStartAngle(), myAngle, and myCompareOutgoing.
|
private |
Definition at line 257 of file NBContHelper.h.
Referenced by operator()().
|
private |
the angle to find the edge with the opposite direction
Definition at line 256 of file NBContHelper.h.
Referenced by operator()().