![]() |
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 129 of file NBContHelper.h.
|
inlineexplicit |
constructor
Definition at line 132 of file NBContHelper.h.
References NBContHelper::relative_outgoing_edge_sorter::operator()().
comparing operation
Definition at line 225 of file NBContHelper.cpp.
References NBEdge::ANGLE_LOOKAHEAD, Position::angleTo2D(), NBEdge::getEndAngle(), NBEdge::getGeometry(), NBEdge::getLength(), NBNode::getPosition(), NBEdge::getToNode(), GeomHelper::legacyDegree(), PositionVector::length(), MAX2(), NBHelpers::normRelAngle(), PositionVector::positionAtOffset2D(), and SUMOReal.
|
private |
the edge to compute the relative angle of
Definition at line 140 of file NBContHelper.h.