SUMO - Simulation of Urban MObility
NBNodesEdgesSorter::edge_by_junction_angle_sorter Class Reference

Sorts incoming and outgoing edges clockwise around the given node. More...

Public Member Functions

 edge_by_junction_angle_sorter (NBNode *n)
int operator() (NBEdge *e1, NBEdge *e2) const

Private Member Functions

SUMOReal getConvAngle (NBEdge *e) const
 Converts the angle of the edge if it is an incoming edge.

Private Attributes

NBNodemyNode
 The node to compute the relative angle of.

Detailed Description

Sorts incoming and outgoing edges clockwise around the given node.

Definition at line 128 of file NBAlgorithms.h.


Constructor & Destructor Documentation


Member Function Documentation

Converts the angle of the edge if it is an incoming edge.

Definition at line 137 of file NBAlgorithms.h.

References NBEdge::getAngleAtNode(), NBEdge::getFromNode(), myNode, and SUMOReal.

Referenced by operator()().

int NBNodesEdgesSorter::edge_by_junction_angle_sorter::operator() ( NBEdge e1,
NBEdge e2 
) const [inline]

Definition at line 131 of file NBAlgorithms.h.

References getConvAngle().


Field Documentation

The node to compute the relative angle of.

Definition at line 158 of file NBAlgorithms.h.

Referenced by getConvAngle().


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines