#include <NBContHelper.h>
Definition at line 155 of file NBContHelper.h.
Public Member Functions | |
| edge_opposite_direction_sorter (NBEdge *e) | |
| constructor | |
| SUMOReal | getDiff (NBEdge *e) const |
| int | operator() (NBEdge *e1, NBEdge *e2) const |
| comparing operation | |
Private Attributes | |
| SUMOReal | myAngle |
| the angle to find the edge with the opposite direction | |
| NBEdge * | myEdge |
| the edge - to avoid comparison of an edge with itself | |
| NBContHelper::edge_opposite_direction_sorter::edge_opposite_direction_sorter | ( | NBEdge * | e | ) | [inline, explicit] |
| SUMOReal NBContHelper::edge_opposite_direction_sorter::getDiff | ( | NBEdge * | e | ) | const [inline] |
helping method for the computation of the absolut difference between the edges' angles
Definition at line 172 of file NBContHelper.h.
References NBEdge::getAngle(), GeomHelper::getMinAngleDiff(), myAngle, and SUMOReal.
Referenced by operator()().
00172 { 00173 SUMOReal d = e->getAngle()+180; 00174 if (d>=360) { 00175 d -= 360; 00176 } 00177 return GeomHelper::getMinAngleDiff(d, myAngle); 00178 }
SUMOReal NBContHelper::edge_opposite_direction_sorter::myAngle [private] |
the angle to find the edge with the opposite direction
Definition at line 182 of file NBContHelper.h.
Referenced by getDiff().
the edge - to avoid comparison of an edge with itself
Definition at line 185 of file NBContHelper.h.
1.5.6