1
0
Fork 0

Add a convienient ctor

This commit is contained in:
daveluff 2005-09-09 12:33:23 +00:00
parent fad67bda10
commit 55e25f9871
2 changed files with 6 additions and 0 deletions

View file

@ -37,6 +37,11 @@ FGATCProjection::FGATCProjection() {
correction_factor = cos(origin.lat() * DCL_DEGREES_TO_RADIANS); correction_factor = cos(origin.lat() * DCL_DEGREES_TO_RADIANS);
} }
FGATCProjection::FGATCProjection(Point3D centre) {
origin = centre;
correction_factor = cos(origin.lat() * DCL_DEGREES_TO_RADIANS);
}
FGATCProjection::~FGATCProjection() { FGATCProjection::~FGATCProjection() {
} }

View file

@ -28,6 +28,7 @@ class FGATCProjection {
public: public:
FGATCProjection(); FGATCProjection();
FGATCProjection(Point3D centre);
~FGATCProjection(); ~FGATCProjection();
void Init(Point3D centre); void Init(Point3D centre);