]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/polar3d.hxx
SG-ified logstream.
[simgear.git] / simgear / math / polar3d.hxx
index 0c91bd4f8ff892b019f8009bf5f63d2c25642e79..fd305b48b8244daa7d51f67d77b9f8a5cc3d39a7 100644 (file)
@@ -83,7 +83,7 @@ inline Point3D calc_gc_lon_lat( const Point3D& orig, double course,
     // printf("calc_lon_lat()  offset.theta = %.2f offset.dist = %.2f\n",
     //        offset.theta, offset.dist);
 
-    dist *= METER_TO_NM * NM_TO_RAD;
+    dist *= SG_METER_TO_NM * SG_NM_TO_RAD;
     
     result.sety( asin( sin(orig.y()) * cos(dist) + 
                       cos(orig.y()) * sin(dist) * cos(course) ) );
@@ -154,7 +154,7 @@ inline void calc_gc_course_dist( const Point3D& start, const Point3D& dest,
     }
 
     *course = tc1;
-    *dist = d * RAD_TO_NM * NM_TO_METER;
+    *dist = d * SG_RAD_TO_NM * SG_NM_TO_METER;
 }
 
 #endif // _POLAR_HXX