X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=simgear%2Fmath%2FSGGeodesy.hxx;h=cce38199b6b252de56afde984f67c3cbaf6c988d;hb=0b4f416ddc3ef8184ffd3b70ae2e8d3e58922bc0;hp=060bf4d3f50ae98a51438805551ceb7121ad34e3;hpb=4e46bb667179cd45cfb2f9934734ceddd1ea01b4;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);