![]() |
SUMO - Simulation of Urban MObility
|
#include <NBContHelper.h>
Public Member Functions | |
int | operator() (NBEdge *e1, NBEdge *e2) const |
comparing operation More... | |
relative_outgoing_edge_sorter (NBEdge *e) | |
constructor More... | |
Private Attributes | |
NBEdge * | myEdge |
the edge to compute the relative angle of More... | |
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 77 of file NBContHelper.h.
|
inlineexplicit |
comparing operation
Definition at line 140 of file NBContHelper.cpp.
References NBEdge::ANGLE_LOOKAHEAD, Position::angleTo2D(), NBEdge::getFromNode(), NBEdge::getGeometry(), NBEdge::getLength(), NBNode::getPosition(), NBEdge::getStartAngle(), GeomHelper::legacyDegree(), MAX2(), NBHelpers::normRelAngle(), and PositionVector::positionAtOffset2D().
Referenced by NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::edge_by_angle_to_nodeShapeCentroid_sorter(), NBContHelper::relative_incoming_edge_sorter::relative_incoming_edge_sorter(), relative_outgoing_edge_sorter(), and NBContHelper::straightness_sorter::straightness_sorter().
|
private |
the edge to compute the relative angle of
Definition at line 88 of file NBContHelper.h.
Referenced by NBContHelper::edge_opposite_direction_sorter::operator()().