From: daveluff Date: Fri, 9 Sep 2005 12:33:23 +0000 (+0000) Subject: Add a convienient ctor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=55e25f98717b046c383616930a7b2c041a494470;p=flightgear.git Add a convienient ctor --- diff --git a/src/ATC/ATCProjection.cxx b/src/ATC/ATCProjection.cxx index 257ea5444..2db8598fe 100644 --- a/src/ATC/ATCProjection.cxx +++ b/src/ATC/ATCProjection.cxx @@ -37,6 +37,11 @@ FGATCProjection::FGATCProjection() { 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() { } diff --git a/src/ATC/ATCProjection.hxx b/src/ATC/ATCProjection.hxx index 04c31ce00..17db9f472 100644 --- a/src/ATC/ATCProjection.hxx +++ b/src/ATC/ATCProjection.hxx @@ -28,6 +28,7 @@ class FGATCProjection { public: FGATCProjection(); + FGATCProjection(Point3D centre); ~FGATCProjection(); void Init(Point3D centre);