Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoUnits.Loxodrome Class Reference

Class representing a given ellipsoid for precise loxodrome or rhumbline calculations. More...

Public Member Functions

 Loxodrome (double a, double f)
 Constructor for the Loxodrome class.
 
BearingRange BearingRange (GeoPos gp0, GeoPos gp1)
 Solves the inverse loxodrome problem. There are infinitely many such curves connecting two given points. This function selects the shortest one, with a preference for going east in case of antipodal points.
 
GeoPos BearingRangeToPos (GeoPos gp0, BearingRange br)
 Solves the direct loxodrome problem.
 
GeoPos[] IntermediatePos (GeoPos pos0, GeoPos pos1, int n)
 Computes evenly spaced waypoints along the shortest loxodrome between two given positions.
 

Detailed Description

Class representing a given ellipsoid for precise loxodrome or rhumbline calculations.

Constructor & Destructor Documentation

◆ Loxodrome()

TPG.GeoUnits.Loxodrome.Loxodrome ( double  a,
double  f 
)
inline

Constructor for the Loxodrome class.

Parameters
aequatorial radius (meters)
fflattening of ellipsoid

Member Function Documentation

◆ BearingRange()

BearingRange TPG.GeoUnits.Loxodrome.BearingRange ( GeoPos  gp0,
GeoPos  gp1 
)
inline

Solves the inverse loxodrome problem. There are infinitely many such curves connecting two given points. This function selects the shortest one, with a preference for going east in case of antipodal points.

Parameters
gp0originating position
gp1target position
Returns
Bearing and range along the loxodrome between the given points

◆ BearingRangeToPos()

GeoPos TPG.GeoUnits.Loxodrome.BearingRangeToPos ( GeoPos  gp0,
BearingRange  br 
)
inline

Solves the direct loxodrome problem.

Parameters
gp0originating position
brBearing and range along the loxodrome
Returns
end position. If the range is long enough thar the line reaches a pole, NaN is returned for longitude

◆ IntermediatePos()

GeoPos[] TPG.GeoUnits.Loxodrome.IntermediatePos ( GeoPos  pos0,
GeoPos  pos1,
int  n 
)
inline

Computes evenly spaced waypoints along the shortest loxodrome between two given positions.

Parameters
pos0Start position
pos1End position
nNumber of waypoints (>= 2), including start and end points
Returns
Array of waypoints

The documentation for this class was generated from the following file: