]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
Helpers to access view position.
[flightgear.git] / src / Main / globals.hxx
index 40c2b697ee838bd34a260668c55cbaf8e0466cc9..5fd300ced5376cb2094bb1523777414ec14d7eff 100644 (file)
@@ -148,6 +148,7 @@ private:
     bool haveUserSettings;
 
     SGPropertyNode_ptr positionLon, positionLat, positionAlt;
+    SGPropertyNode_ptr viewLon, viewLat, viewAlt;
     SGPropertyNode_ptr orientHeading, orientPitch, orientRoll;
 public:
 
@@ -249,10 +250,14 @@ public:
 
     SGGeod get_aircraft_position() const;
 
-    SGVec3d get_aircraft_positon_cart() const;
+    SGVec3d get_aircraft_position_cart() const;
 
     void get_aircraft_orientation(double& heading, double& pitch, double& roll);
   
+    SGGeod get_view_position() const;
+  
+    SGVec3d get_view_position_cart() const;
+  
     inline string_list *get_channel_options_list () {
        return channel_options_list;
     }