SUMO - Simulation of Urban MObility
|
#include <NBContHelper.h>
Public Member Functions | |
int | operator() (NBEdge *e1, NBEdge *e2) const |
comparing operation | |
relative_outgoing_edge_sorter (NBEdge *e) | |
constructor |
Private Attributes | |
NBEdge * | myEdge |
the edge to compute the relative angle of |
relative_outgoing_edge_sorter Class to sort edges by their angle in relation to the node the edge using this class is incoming into. This is normally done to sort edges outgoing from the node the using edge is incoming in by their angle in relation to the using edge's angle (this angle is the reference angle).
Definition at line 84 of file NBContHelper.h.
|
inlineexplicit |
constructor
Definition at line 87 of file NBContHelper.h.
comparing operation
Definition at line 151 of file NBContHelper.cpp.
References NBHelpers::angle(), NBEdge::ANGLE_LOOKAHEAD, NBEdge::getFromNode(), NBEdge::getGeometry(), NBEdge::getLength(), NBNode::getPosition(), NBEdge::getStartAngle(), MAX2(), NBHelpers::normRelAngle(), PositionVector::positionAtOffset2D(), SUMOReal, Position::x(), and Position::y().
|
private |
the edge to compute the relative angle of
Definition at line 95 of file NBContHelper.h.