Position2DVector::as_poly_cw_sorter Class Reference

#include <Position2DVector.h>


Detailed Description

Definition at line 209 of file Position2DVector.h.


Public Member Functions

 as_poly_cw_sorter (Position2D center)
 constructor
int operator() (const Position2D &p1, const Position2D &p2) const
 comparing operation

Private Attributes

Position2D myCenter
 the edge to compute the relative angle of

Constructor & Destructor Documentation

Position2DVector::as_poly_cw_sorter::as_poly_cw_sorter ( Position2D  center  )  [explicit]

constructor

Definition at line 402 of file Position2DVector.cpp.

00403         : myCenter(center) {}


Member Function Documentation

int Position2DVector::as_poly_cw_sorter::operator() ( const Position2D p1,
const Position2D p2 
) const

comparing operation

Definition at line 408 of file Position2DVector.cpp.

References Position2D::x(), and Position2D::y().

00409                                     {
00410     return atan2(p1.x(), p1.y()) < atan2(p2.x(), p2.y());
00411 }


Field Documentation

the edge to compute the relative angle of

Definition at line 220 of file Position2DVector.h.


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

Generated on Wed May 5 00:06:59 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6