![]() |
Eclipse SUMO - Simulation of Urban MObility
|
class for CW Sorter More...
#include <PositionVector.h>
Public Member Functions | |
| as_poly_cw_sorter () | |
| constructor | |
| int | operator() (const Position &p1, const Position &p2) const |
| comparing operation for sort | |
Private Member Functions | |
| double | atAngle2D (const Position &p) const |
| computes the angle of the given vector, in the range $[0,2*\pi[$ | |
class for CW Sorter
Definition at line 326 of file PositionVector.h.
| PositionVector::as_poly_cw_sorter::as_poly_cw_sorter | ( | ) |
constructor
Definition at line 714 of file PositionVector.cpp.
|
private |
computes the angle of the given vector, in the range $[0,2*\pi[$
Definition at line 736 of file PositionVector.cpp.
References M_PI, Position::x(), and Position::y().
Referenced by operator()().
| int PositionVector::as_poly_cw_sorter::operator() | ( | const Position & | p1, |
| const Position & | p2 ) const |
comparing operation for sort
Definition at line 718 of file PositionVector.cpp.
References atAngle2D(), and Position::dotProduct().