X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2FSGGeodesy.hxx;h=cce38199b6b252de56afde984f67c3cbaf6c988d;hb=8c38f799adf4f4ece8c79dd1e6ff5a75d85a17dc;hp=060bf4d3f50ae98a51438805551ceb7121ad34e3;hpb=dd044844e52e939af0c4e979f25583862123bb7a;p=simgear.git diff --git a/simgear/math/SGGeodesy.hxx b/simgear/math/SGGeodesy.hxx index 060bf4d3..cce38199 100644 --- a/simgear/math/SGGeodesy.hxx +++ b/simgear/math/SGGeodesy.hxx @@ -50,6 +50,11 @@ public: static bool direct(const SGGeod& p1, double course1, double distance, SGGeod& p2, double& course2); + /// overloaded version of above, returns new value directly, throws + /// an sg_exception on failure. + static SGGeod direct(const SGGeod& p1, double course1, + double distance); + static bool inverse(const SGGeod& p1, const SGGeod& p2, double& course1, double& course2, double& distance);