SUMO - Simulation of Urban MObility
NBNodesEdgesSorter::edge_by_junction_angle_sorter Class Reference

Sorts incoming and outgoing edges clockwise around the given node. More...

#include <NBAlgorithms.h>

Collaboration diagram for NBNodesEdgesSorter::edge_by_junction_angle_sorter:
Collaboration graph

Public Member Functions

 edge_by_junction_angle_sorter (NBNode *n)
 
int operator() (NBEdge *e1, NBEdge *e2) const
 

Protected Member Functions

double getConvAngle (NBEdge *e) const
 Converts the angle of the edge if it is an incoming edge. More...
 

Private Attributes

NBNode * myNode
 The node to compute the relative angle of. More...
 

Detailed Description

Sorts incoming and outgoing edges clockwise around the given node.

Definition at line 159 of file NBAlgorithms.h.

Constructor & Destructor Documentation

◆ edge_by_junction_angle_sorter()

NBNodesEdgesSorter::edge_by_junction_angle_sorter::edge_by_junction_angle_sorter ( NBNode *  n)
inlineexplicit

Definition at line 161 of file NBAlgorithms.h.

Member Function Documentation

◆ getConvAngle()

double NBNodesEdgesSorter::edge_by_junction_angle_sorter::getConvAngle ( NBEdge *  e) const
inlineprotected

Converts the angle of the edge if it is an incoming edge.

Definition at line 168 of file NBAlgorithms.h.

References NBTurningDirectionsComputer::Combination::angle, NBEdge::getAngleAtNode(), and NBEdge::getFromNode().

◆ operator()()

int NBNodesEdgesSorter::edge_by_junction_angle_sorter::operator() ( NBEdge *  e1,
NBEdge *  e2 
) const
inline

Definition at line 162 of file NBAlgorithms.h.

Field Documentation

◆ myNode

NBNode* NBNodesEdgesSorter::edge_by_junction_angle_sorter::myNode
private

The node to compute the relative angle of.

Definition at line 189 of file NBAlgorithms.h.


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