X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2FSGGeodesy.hxx;h=060bf4d3f50ae98a51438805551ceb7121ad34e3;hb=66c9187c95fb6861d9737f135fdf68d1bfa265f3;hp=53e2cbb3734b749efc39923ae78434aa4ce7e072;hpb=07a450894437e356f10b486d9a94c6103443941e;p=simgear.git diff --git a/simgear/math/SGGeodesy.hxx b/simgear/math/SGGeodesy.hxx index 53e2cbb3..060bf4d3 100644 --- a/simgear/math/SGGeodesy.hxx +++ b/simgear/math/SGGeodesy.hxx @@ -61,7 +61,18 @@ public: static void advanceRadM(const SGGeoc& geoc, double course, double distance, SGGeoc& result); static double courseRad(const SGGeoc& from, const SGGeoc& to); + static double distanceRad(const SGGeoc& from, const SGGeoc& to); static double distanceM(const SGGeoc& from, const SGGeoc& to); + + /** + * compute the intersection of two (true) radials (in degrees), or return false + * if no intersection culd be computed. + */ + static bool radialIntersection(const SGGeoc& a, double aRadial, + const SGGeoc& b, double bRadial, SGGeoc& result); + + static bool radialIntersection(const SGGeod& a, double aRadial, + const SGGeod& b, double bRadial, SGGeod& result); }; #endif