X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2FSGGeodesy.hxx;h=060bf4d3f50ae98a51438805551ceb7121ad34e3;hb=7bdb530440d1dadc991f305edb1b70ec85f27451;hp=ef1be21f618185ea56405a94bed03eed49fc44eb;hpb=dfea3623f6549c9173fed5149da41285863fc290;p=simgear.git diff --git a/simgear/math/SGGeodesy.hxx b/simgear/math/SGGeodesy.hxx index ef1be21f..060bf4d3 100644 --- a/simgear/math/SGGeodesy.hxx +++ b/simgear/math/SGGeodesy.hxx @@ -63,6 +63,16 @@ public: 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