SUMO - Simulation of Urban MObility
NBContHelper::edge_similar_direction_sorter Class Reference

#include <NBContHelper.h>

Collaboration diagram for NBContHelper::edge_similar_direction_sorter:
Collaboration graph

Public Member Functions

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

Private Attributes

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

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

Constructor & Destructor Documentation

§ edge_similar_direction_sorter()

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

constructor

Definition at line 245 of file NBContHelper.h.

Member Function Documentation

§ operator()()

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

comparing operation

Definition at line 249 of file NBContHelper.h.

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

Field Documentation

§ myAngle

SUMOReal NBContHelper::edge_similar_direction_sorter::myAngle
private

the angle to find the edge with the opposite direction

Definition at line 257 of file NBContHelper.h.


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