SUMO - Simulation of Urban MObility

NBContHelper::relative_edge_sorter Class Reference

#include <NBContHelper.h>

Public Member Functions

int operator() (NBEdge *e1, NBEdge *e2) const
 comparing operation
 relative_edge_sorter (NBEdge *e, NBNode *n)
 constructor

Private Attributes

NBEdge * myEdge
 the edge to compute the relative angle of
NBNode * myNode
 the node to use

Detailed Description

relative_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 105 of file NBContHelper.h.


Constructor & Destructor Documentation

NBContHelper::relative_edge_sorter::relative_edge_sorter ( NBEdge *  e,
NBNode *  n 
) [inline, explicit]

constructor

Definition at line 108 of file NBContHelper.h.


Member Function Documentation

int NBContHelper::relative_edge_sorter::operator() ( NBEdge *  e1,
NBEdge *  e2 
) const [inline]

comparing operation

Definition at line 113 of file NBContHelper.h.

References NBEdge::getAngle(), myEdge, NBHelpers::normRelAngle(), and SUMOReal.


Field Documentation

the edge to compute the relative angle of

Definition at line 126 of file NBContHelper.h.

Referenced by operator()().

the node to use

Definition at line 129 of file NBContHelper.h.


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