SUMO - Simulation of Urban MObility
|
#include <NBContHelper.h>
Public Member Functions | |
int | operator() (NBEdge *e1, NBEdge *e2) const |
comparing operation More... | |
relative_incoming_edge_sorter (NBEdge *e) | |
constructor More... | |
Private Attributes | |
NBEdge * | myEdge |
the edge to compute the relative angle of More... | |
relative_incoming_edge_sorter Class to sort edges by their angle in relation to an outgoing edge. This is normally done to sort edges incoming at the starting node of this edge by their angle in relation to the using edge's angle (this angle is the reference angle).
Definition at line 106 of file NBContHelper.h.
|
inlineexplicit |
constructor
Definition at line 109 of file NBContHelper.h.
comparing operation
Definition at line 184 of file NBContHelper.cpp.
References NBHelpers::angle(), NBEdge::ANGLE_LOOKAHEAD, NBEdge::getEndAngle(), NBEdge::getGeometry(), NBEdge::getLength(), NBNode::getPosition(), NBEdge::getToNode(), PositionVector::length(), MAX2(), NBHelpers::normRelAngle(), PositionVector::positionAtOffset2D(), SUMOReal, Position::x(), and Position::y().
|
private |
the edge to compute the relative angle of
Definition at line 117 of file NBContHelper.h.