Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSLane::by_connections_to_sorter Class Reference

Sorts edges by their angle relative to the given edge (straight comes first) More...

Collaboration diagram for MSLane::by_connections_to_sorter:
[legend]

Public Member Functions

 by_connections_to_sorter (const MSEdge *const e)
 constructor
 
int operator() (const MSEdge *const e1, const MSEdge *const e2) const
 comparing operator
 

Private Attributes

const MSEdge *const myEdge
 
double myLaneDir
 

Detailed Description

Sorts edges by their angle relative to the given edge (straight comes first)

Definition at line 1633 of file MSLane.h.

Constructor & Destructor Documentation

◆ by_connections_to_sorter()

MSLane::by_connections_to_sorter::by_connections_to_sorter ( const MSEdge *const  e)
explicit

constructor

Definition at line 3308 of file MSLane.cpp.

Member Function Documentation

◆ operator()()

int MSLane::by_connections_to_sorter::operator() ( const MSEdge *const  e1,
const MSEdge *const  e2 
) const

comparing operator

Definition at line 3315 of file MSLane.cpp.

References MSEdge::allowedLanes(), GeomHelper::angleDiff(), MSLane::getShape(), M_PI, and MSLane::myEdge.

Field Documentation

◆ myEdge

const MSEdge* const MSLane::by_connections_to_sorter::myEdge
private

Definition at line 1642 of file MSLane.h.

◆ myLaneDir

double MSLane::by_connections_to_sorter::myLaneDir
private

Definition at line 1643 of file MSLane.h.


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