GeographicLib
1.37
|
Find a sequence of points on a single rhumb line. More...
#include <GeographicLib/Rhumb.hpp>
Public Member Functions | |
void | Position (real s12, real &lat2, real &lon2) const |
Inspector functions | |
Math::real | Latitude () const |
Math::real | Longitude () const |
Math::real | Azimuth () const |
Math::real | MajorRadius () const |
Math::real | Flattening () const |
Friends | |
class | Rhumb |
Find a sequence of points on a single rhumb line.
RhumbLine facilitates the determination of a series of points on a single rhumb line. The starting point (lat1, lon1) and the azimuth azi12 are specified in the call to Rhumb::Line which returns a RhumbLine object. RhumbLine.Position returns the location of point 2 a distance s12 along the rhumb line.
There is no public constructor for this class. (Use Rhumb::Line to create an instance.) The Rhumb object used to create a RhumbLine must stay in scope as long as the RhumbLine.
Example of use:
void GeographicLib::RhumbLine::Position | ( | real | s12, |
real & | lat2, | ||
real & | lon2 | ||
) | const |
Compute the position of point 2 which is a distance s12 (meters) from point 1.
[in] | s12 | distance between point 1 and point 2 (meters); it can be negative. |
[out] | lat2 | latitude of point 2 (degrees). |
[out] | lon2 | longitude of point 2 (degrees). |
The values of lon2 and azi2 returned are in the range [−180°, 180°).
If s12 is large enough that the rhumb line crosses a pole, the longitude of point 2 is indeterminate (a NaN is returned for lon2).
Definition at line 193 of file Rhumb.cpp.
References GeographicLib::Math::AngNormalize(), GeographicLib::Math::AngNormalize2(), GeographicLib::Math::degree(), GeographicLib::Ellipsoid::InverseRectifyingLatitude(), GeographicLib::Math::NaN(), and GeographicLib::Ellipsoid::QuarterMeridian().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 326 of file Rhumb.hpp.
References GeographicLib::Rhumb::MajorRadius().
|
inline |
Definition at line 332 of file Rhumb.hpp.
References GeographicLib::Rhumb::Flattening().