]> git.mxchange.org Git - flightgear.git/commitdiff
Add a convienient ctor
authordaveluff <daveluff>
Fri, 9 Sep 2005 12:33:23 +0000 (12:33 +0000)
committerdaveluff <daveluff>
Fri, 9 Sep 2005 12:33:23 +0000 (12:33 +0000)
src/ATC/ATCProjection.cxx
src/ATC/ATCProjection.hxx

index 257ea544483cc492a51381f5beccdcc6f59e8aa8..2db8598fe938ca916741a3efb2b1fe0afa549d8b 100644 (file)
@@ -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() {
 }
 
index 04c31ce0005302afd40630fd4be375d0c83b555f..17db9f47272b7cd4426fdf31127e21c779c2b241 100644 (file)
@@ -28,6 +28,7 @@ class FGATCProjection {
 
 public:
     FGATCProjection();
+    FGATCProjection(Point3D centre);
     ~FGATCProjection();
 
     void Init(Point3D centre);