Moved Point3DOrdering to SimGear.
This commit is contained in:
parent
521f9e2fc9
commit
fe3f38c662
1 changed files with 0 additions and 14 deletions
|
@ -357,20 +357,6 @@ TGPolygon polygon_tesselate_alt( TGPolygon &p ) {
|
|||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
* Helper class for sorting points along a given axis.
|
||||
*/
|
||||
class Point3DOrdering {
|
||||
public:
|
||||
Point3DOrdering(int axis):axis(axis) {}
|
||||
bool operator()(const Point3D& a, const Point3D& b) {
|
||||
return a[axis]<b[axis];
|
||||
}
|
||||
|
||||
protected:
|
||||
int axis;
|
||||
};
|
||||
|
||||
/*
|
||||
* Find all intersections of the given contour with the x-parallel line at
|
||||
* y=yline. Assume that no points are on the line (callers take care of this!).
|
||||
|
|
Loading…
Reference in a new issue