Eclipse SUMO - Simulation of Urban MObility
PositionVector::as_poly_cw_sorter Class Reference

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...
 

Detailed Description

class for CW Sorter

Definition at line 317 of file PositionVector.h.

Constructor & Destructor Documentation

◆ as_poly_cw_sorter()

PositionVector::as_poly_cw_sorter::as_poly_cw_sorter ( )

constructor

Definition at line 708 of file PositionVector.cpp.

Member Function Documentation

◆ atAngle2D()

double PositionVector::as_poly_cw_sorter::atAngle2D ( const Position p) const
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().

◆ operator()()

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().


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