]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/geocoord.h
Updates to build system to better support automake-1.5
[simgear.git] / simgear / timing / geocoord.h
index 186de9bb6e229289e7e27ffd4235b39d0eacc834..c01195abefe679ec87f53888afe2e6a43e8be741 100644 (file)
@@ -43,7 +43,7 @@
 // But it looks like it isn't used anyways -:)
 #include <vector>
 
-FG_USING_NAMESPACE(std);
+SG_USING_NAMESPACE(std);
 
 #include <simgear/constants.h>
 
@@ -62,9 +62,9 @@ public:
   void set(float la, float lo) { lat = la; lon = lo; }; 
   float getLat() const { return lat; };
   float getLon() const { return lon; };
-  float getX()   const { return cos(DEG_TO_RAD*lat) * cos(DEG_TO_RAD*lon); };
-  float getY()   const { return cos(DEG_TO_RAD*lat) * sin(DEG_TO_RAD*lon); };
-  float getZ()   const { return sin(DEG_TO_RAD*lat); };
+  float getX()   const { return cos(SGD_DEGREES_TO_RADIANS*lat) * cos(SGD_DEGREES_TO_RADIANS*lon); };
+  float getY()   const { return cos(SGD_DEGREES_TO_RADIANS*lat) * sin(SGD_DEGREES_TO_RADIANS*lon); };
+  float getZ()   const { return sin(SGD_DEGREES_TO_RADIANS*lat); };
 
 
   //double getAngle(const GeoCoord& other) const;