|
NETGeographicLib
1.52
|
.NET wrapper for GeographicLib::RhumbLine. More...
#include <NETGeographicLib/Rhumb.h>
Public Types | |
| enum class | mask { NONE , LATITUDE , LONGITUDE , AZIMUTH , DISTANCE , AREA , LONG_UNROLL , ALL } |
Public Member Functions | |
| RhumbLine (GeographicLib::RhumbLine *pRhumbLine) | |
| Constructor. More... | |
| ~RhumbLine () | |
| The destructor calls the finalizer. More... | |
| void | Position (double s12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% S12) |
| void | Position (double s12, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2) |
| void | GenPosition (double s12, RhumbLine::mask outmask, [System::Runtime::InteropServices::Out] double% lat2, [System::Runtime::InteropServices::Out] double% lon2, [System::Runtime::InteropServices::Out] double% S12) |
Properties | |
Inspector functions | |
| double | Latitude [get] |
| double | Longitude [get] |
| double | Azimuth [get] |
| double | EquatorialRadius [get] |
| double | Flattening [get] |
.NET wrapper for GeographicLib::RhumbLine.
This class allows .NET applications to access GeographicLib::RhumbLine.
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.
|
strong |
| NETGeographicLib::RhumbLine::RhumbLine | ( | GeographicLib::RhumbLine * | pRhumbLine | ) |
Constructor.
For internal use only. Developers should not call this constructor directly. Use the Rhumb::Line function to create RhumbLine objects.
Referenced by ~RhumbLine().
|
inline |
| void NETGeographicLib::RhumbLine::Position | ( | double | s12, |
| [System::Runtime::InteropServices::Out] double% | lat2, | ||
| [System::Runtime::InteropServices::Out] double% | lon2, | ||
| [System::Runtime::InteropServices::Out] double% | S12 | ||
| ) |
Compute the position of point 2 which is a distance s12 (meters) from point 1. The area is also computed.
| [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). |
| [out] | S12 | area under the rhumb line (meters2). |
The value of lon2 returned is 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 and S12).
| void NETGeographicLib::RhumbLine::Position | ( | double | s12, |
| [System::Runtime::InteropServices::Out] double% | lat2, | ||
| [System::Runtime::InteropServices::Out] double% | lon2 | ||
| ) |
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).
| void NETGeographicLib::RhumbLine::GenPosition | ( | double | s12, |
| RhumbLine::mask | outmask, | ||
| [System::Runtime::InteropServices::Out] double% | lat2, | ||
| [System::Runtime::InteropServices::Out] double% | lon2, | ||
| [System::Runtime::InteropServices::Out] double% | S12 | ||
| ) |
The general position routine. RhumbLine::Position is defined in term so this function.
| [in] | s12 | distance between point 1 and point 2 (meters); it can be negative. |
| [in] | outmask | a bitor'ed combination of RhumbLine::mask values specifying which of the following parameters should be set. |
| [out] | lat2 | latitude of point 2 (degrees). |
| [out] | lon2 | longitude of point 2 (degrees). |
| [out] | S12 | area under the rhumb line (meters2). |
The RhumbLine::mask values possible for outmask are
With the LONG_UNROLL bit set, the quantity lon2 − lon1 indicates how many times and in what sense the rhumb line encircles the ellipsoid.
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 and S12).
|
get |
|
get |
|
get |
|
get |
|
get |