![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <NBContHelper.h>
Public Member Functions | |
bool | operator() (const NBEdge *e1, const NBEdge *e2) const |
comparing operation | |
relative_outgoing_edge_sorter (double angle) | |
constructor | |
relative_outgoing_edge_sorter (NBEdge *e) | |
constructor | |
Private Attributes | |
double | myAngle |
the reference angle to compare edges agains | |
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 74 of file NBContHelper.h.
|
inlineexplicit |
constructor
Definition at line 77 of file NBContHelper.h.
|
inlineexplicit |
constructor
Definition at line 79 of file NBContHelper.h.
bool NBContHelper::relative_outgoing_edge_sorter::operator() | ( | const NBEdge * | e1, |
const NBEdge * | e2 | ||
) | const |
comparing operation
Definition at line 138 of file NBContHelper.cpp.
References NBEdge::ANGLE_LOOKAHEAD, Position::angleTo2D(), NBEdge::getFromNode(), NBEdge::getGeometry(), NBEdge::getID(), NBNode::getPosition(), NBEdge::getStartAngle(), GeomHelper::legacyDegree(), PositionVector::length2D(), MAX2(), MIN2(), NBHelpers::normRelAngle(), and PositionVector::positionAtOffset2D().
|
private |
the reference angle to compare edges agains
Definition at line 87 of file NBContHelper.h.