Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NBContHelper::edge_similar_direction_sorter Class Reference

#include <NBContHelper.h>

Public Member Functions

 edge_similar_direction_sorter (const NBEdge *const e, bool outgoing=true)
 constructor
int operator() (const NBEdge *e1, const NBEdge *e2) const
 comparing operation

Private Member Functions

double angleDiff (const double angle1, const double angle2) const

Private Attributes

double myAngle
bool myCompareOutgoing
 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 its first entry

Definition at line 219 of file NBContHelper.h.

Constructor & Destructor Documentation

◆ edge_similar_direction_sorter()

NBContHelper::edge_similar_direction_sorter::edge_similar_direction_sorter ( const NBEdge *const e,
bool outgoing = true )
inlineexplicit

constructor

Definition at line 222 of file NBContHelper.h.

References myAngle, and myCompareOutgoing.

Member Function Documentation

◆ angleDiff()

double NBContHelper::edge_similar_direction_sorter::angleDiff ( const double angle1,
const double angle2 ) const
inlineprivate

Definition at line 242 of file NBContHelper.h.

Referenced by operator()().

Here is the caller graph for this function:

◆ operator()()

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

Field Documentation

◆ myAngle

double NBContHelper::edge_similar_direction_sorter::myAngle
private

Definition at line 257 of file NBContHelper.h.

Referenced by edge_similar_direction_sorter(), and operator()().

◆ myCompareOutgoing

bool NBContHelper::edge_similar_direction_sorter::myCompareOutgoing
private

the angle to find the edge with the opposite direction

Definition at line 256 of file NBContHelper.h.

Referenced by edge_similar_direction_sorter(), and operator()().


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