Inheritance diagram for col::lessByAngle:
Public Member Functions | |
lessByAngle (int xValue, int yValue, vector< Pnt3f > &pointVector) | |
bool | operator() (int i1, int i2) const |
Public Attributes | |
int | x |
points will be projected onto that plane | |
int | y |
vector< Pnt3f > & | point |
the points themselves; the () expects to get 2 indices into this array |
x
axis are computed, and those are compared. This functor is meant as a Binary Predicate for sort()
.Angles are in [0,360). No trigonometric function are evaluated, and if the two points are in different quadrants, then only comparisons are made, i.e. / quadrant(p1) < quadrant(p2), p1,p2 in different qu's p1 < p2 <=> | \ p1_y/p1_x < p2_y/p2_x , p1,p2 in same quadrant
x
, y
, and point
,npoints are set.