X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Froute%2Fwaytest.cxx;h=0d57bff89fcef2ed47827b20b52206e20fa953b6;hb=ba1b96e518ee65d9c07b9e926c4bd8fe0713e12b;hp=ec748697420196ae36a5dca1fe30469e938e3836;hpb=c481b064518d1b9b4225c8b6b25e45c6a2e229a6;p=simgear.git diff --git a/simgear/route/waytest.cxx b/simgear/route/waytest.cxx index ec748697..0d57bff8 100644 --- a/simgear/route/waytest.cxx +++ b/simgear/route/waytest.cxx @@ -1,6 +1,13 @@ +#include #include + +#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;