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