1
0
Fork 0

Add a simple class definition here that was removed from SimGear.

This commit is contained in:
curt 2007-08-15 14:34:29 +00:00
parent 20105f0e6c
commit 40e74181e2
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,19 @@
/**
* Simple 2d point class where members can be accessed as x, dist, or lon
* and y, theta, or lat
*/
class point2d {
public:
union {
double x;
double dist;
double lon;
};
union {
double y;
double theta;
double lat;
};
};

View file

@ -41,6 +41,7 @@ SG_USING_STD(endl);
#include <poly2tri/interface.h> #include <poly2tri/interface.h>
#include "polygon.hxx" #include "polygon.hxx"
#include "point2d.hxx"
// Constructor // Constructor
TGPolygon::TGPolygon( void ) TGPolygon::TGPolygon( void )