]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCProjection.hxx
Oliver Schroeder:
[flightgear.git] / src / ATC / ATCProjection.hxx
index 137b3989386a0c22657ca76b29dc7691ac53227f..739c91a74cbbb494376362b4c2136effc151c904 100644 (file)
@@ -28,15 +28,16 @@ class FGATCProjection {
 
 public:
     FGATCProjection();
+    FGATCProjection(const Point3D& centre);
     ~FGATCProjection();
 
-    void Init(Point3D centre);
+    void Init(const Point3D& centre);
 
-    // Convert a lat/lon co-ordinate to the local projection
-    Point3D ConvertToLocal(Point3D pt);
+    // Convert a lat/lon co-ordinate (degrees) to the local projection (meters)
+    Point3D ConvertToLocal(const Point3D& pt);
 
-    // Convert a local projection co-ordinate to lat/lon
-    Point3D ConvertFromLocal(Point3D pt);
+    // Convert a local projection co-ordinate (meters) to lat/lon (degrees)
+    Point3D ConvertFromLocal(const Point3D& pt);
 
 private:
     Point3D origin;    // lat/lon of local area origin
@@ -53,13 +54,13 @@ public:
     FGATCAlignedProjection();
     ~FGATCAlignedProjection();
 
-    void Init(Point3D centre, double heading);
+    void Init(const Point3D& centre, double heading);
 
-    // Convert a lat/lon co-ordinate to the local projection
-    Point3D ConvertToLocal(Point3D pt);
+    // Convert a lat/lon co-ordinate (degrees) to the local projection (meters)
+    Point3D ConvertToLocal(const Point3D& pt);
 
-    // Convert a local projection co-ordinate to lat/lon
-    Point3D ConvertFromLocal(Point3D pt);
+    // Convert a local projection co-ordinate (meters) to lat/lon (degrees)
+    Point3D ConvertFromLocal(const Point3D& pt);
 
 private:
     Point3D origin;    // lat/lon of local area origin (the threshold)