Add a simple class definition here that was removed from SimGear.
This commit is contained in:
parent
20105f0e6c
commit
40e74181e2
2 changed files with 20 additions and 0 deletions
19
src/Lib/Polygon/point2d.hxx
Normal file
19
src/Lib/Polygon/point2d.hxx
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue