SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NBContHelper::edge_similar_direction_sorter Class Reference

#include <NBContHelper.h>

Public Member Functions

 edge_similar_direction_sorter (const NBEdge *const e)
 constructor
int operator() (NBEdge *e1, NBEdge *e2) const
 comparing operation

Private Attributes

SUMOReal myAngle
 the angle to find the edge with the opposite direction

Detailed Description

edge_similar_direction_sorter Class to sort edges by their angle in relation to the given edge The resulting list should have the edge in the most similar direction to the given edge as her first entry

Definition at line 215 of file NBContHelper.h.

Constructor & Destructor Documentation

NBContHelper::edge_similar_direction_sorter::edge_similar_direction_sorter ( const NBEdge *const  e)
inlineexplicit

constructor

Definition at line 218 of file NBContHelper.h.

Member Function Documentation

int NBContHelper::edge_similar_direction_sorter::operator() ( NBEdge e1,
NBEdge e2 
) const
inline

comparing operation

Definition at line 222 of file NBContHelper.h.

References GeomHelper::getMinAngleDiff(), NBEdge::getTotalAngle(), myAngle, and SUMOReal.

Field Documentation

SUMOReal NBContHelper::edge_similar_direction_sorter::myAngle
private

the angle to find the edge with the opposite direction

Definition at line 230 of file NBContHelper.h.

Referenced by operator()().


The documentation for this class was generated from the following file: