Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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:
[legend]

Public Member Functions

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

Private Attributes

NBNodemyNode
 The node to compute the relative angle of.

Detailed Description

Sorts incoming and outgoing edges clockwise around the given node.

Definition at line 169 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 171 of file NBAlgorithms.h.

References myNode, and n.

Member Function Documentation

◆ operator()()

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

Field Documentation

◆ myNode

NBNode* NBNodesEdgesSorter::edge_by_junction_angle_sorter::myNode
private

The node to compute the relative angle of.

Definition at line 180 of file NBAlgorithms.h.

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


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