]> git.mxchange.org Git - simgear.git/blobdiff - simgear/route/waytest.cxx
Roy Vegard Ovesen:
[simgear.git] / simgear / route / waytest.cxx
index ec748697420196ae36a5dca1fe30469e938e3836..0d57bff89fcef2ed47827b20b52206e20fa953b6 100644 (file)
@@ -1,6 +1,13 @@
+#include <simgear/compiler.h>
 #include <simgear/constants.h>
+
+#include STL_IOSTREAM
+
 #include "waypoint.hxx"
 
+SG_USING_STD(cout);
+SG_USING_STD(endl);
+
 int main() {
     SGWayPoint a1(-93.216923, 44.880547, 0.0, SGWayPoint::WGS84, "KMSP");
     SGWayPoint a2(-93.216923, 44.880547, 0.0, SGWayPoint::SPHERICAL, "KMSP");
@@ -14,12 +21,12 @@ int main() {
 
     a1.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
     cout << "Course to " << a1.get_id() << " is " << course << endl;
-    cout << "Distance to " << a1.get_id() << " is " << distance * METER_TO_NM
+    cout << "Distance to " << a1.get_id() << " is " << distance * SG_METER_TO_NM
         << endl;
 
     a2.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
     cout << "Course to " << a2.get_id() << " is " << course << endl;
-    cout << "Distance to " << a2.get_id() << " is " << distance * METER_TO_NM
+    cout << "Distance to " << a2.get_id() << " is " << distance * SG_METER_TO_NM
         << endl;
     cout << endl;
 
@@ -28,12 +35,12 @@ int main() {
 
     b1.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
     cout << "Course to " << b1.get_id() << " is " << course << endl;
-    cout << "Distance to " << b1.get_id() << " is " << distance * METER_TO_NM
+    cout << "Distance to " << b1.get_id() << " is " << distance * SG_METER_TO_NM
         << endl;
 
     b2.CourseAndDistance( cur_lon, cur_lat, cur_alt, &course, &distance );
     cout << "Course to " << b2.get_id() << " is " << course << endl;
-    cout << "Distance to " << b2.get_id() << " is " << distance * METER_TO_NM
+    cout << "Distance to " << b2.get_id() << " is " << distance * SG_METER_TO_NM
         << endl;
     cout << endl;