Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
PositionVector::as_poly_cw_sorter Class Reference

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[$

Detailed Description

class for CW Sorter

Definition at line 326 of file PositionVector.h.

Constructor & Destructor Documentation

◆ as_poly_cw_sorter()

PositionVector::as_poly_cw_sorter::as_poly_cw_sorter ( )

constructor

Definition at line 714 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 736 of file PositionVector.cpp.

References M_PI, Position::x(), and Position::y().

Referenced by operator()().

Here is the caller graph for this function:

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


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