I noticed today that functions calc_gc_course_dist() and calc_gc_lon_lat() in simgear/math/polar3d.cxx wrongly assume that positive longitude values are in the West, and negative in the East.
Apparently the functions were copied/adapted from the "Aviation Formulary" site (http://williams.best.vwh.net/avform.htm), which says: "For the convenience of North Americans I will take North latitudes and West longitudes as positive and South and East negative." Consequently, calc_gc_course_dist() returns 270 for heading East. Apparently, all users of the functions throughout sg and fg (and there are quite some) hacked around this oddness, probably without knowing WTF went on. Or am I missing something? :-} m. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel