WRAPPER_API bool RhumbInverse(const GeodeticPoint &fromPoint, const GeodeticPoint &toPoint, double &azimuth, double &geodesic) const
The RhumbInverse method computes a path of constant heading that connects the two specified points on the Ellipsoid. A path of constant heading is called a Rhumb Line. The first argument is the starting point, and the second argument is the destination point. The third argument gives the calculated azimuth that one must travel from the starting point to reach the destination point. The fourth argument gives the calculated geodesic distance along the Rhumb Line between the two points. The method returns a boolean value indicating the success of the operation.
The geodesic distance is given in meters, and the azimuth values are given in radians.
If three-dimensional GeodeticPoints are used with this method, the Height coordinates will be ignored. The Height of the points will be assumed to be 0 so that the calculations will occur on the surface of the Ellipsoid.
void Ellipsoid_RhumbInverse(GeoCalcPBW::DataSource & data)
GeoCalcPBW::Ellipsoid * ell = GeoCalcPBW::Ellipsoid::CreateEllipsoid();
GeoCalcPBW::GeodeticPoint * fromPt = data.GetGeodeticPoint(L"BMG", L"GEODETIC_POINT_DEGREES");
GeoCalcPBW::GeodeticPoint * toPt = data.GetGeodeticPoint(L"BMG", L"GEODETIC_POINT_DEGREES");
if(! ell->RhumbInverse(*fromPt, *toPt, geodesic, azimuth))