Add a convienient ctor
This commit is contained in:
parent
fad67bda10
commit
55e25f9871
2 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@ class FGATCProjection {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FGATCProjection();
|
FGATCProjection();
|
||||||
|
FGATCProjection(Point3D centre);
|
||||||
~FGATCProjection();
|
~FGATCProjection();
|
||||||
|
|
||||||
void Init(Point3D centre);
|
void Init(Point3D centre);
|
||||||
|
|
Loading…
Reference in a new issue