1
0
Fork 0

Moved Point3DOrdering to SimGear.

This commit is contained in:
Ralf Gerlich 2008-09-11 12:30:40 +02:00
parent 521f9e2fc9
commit fe3f38c662

View file

@ -357,20 +357,6 @@ TGPolygon polygon_tesselate_alt( TGPolygon &p ) {
return result; 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 * 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!). * y=yline. Assume that no points are on the line (callers take care of this!).