Struct RhumbInverseResult
Distance and constant bearing of a rhumb route between two positions.
struct RhumbInverseResult(T)
if (isGeodesyScalar!T);
Read distance in the ellipsoid's linear unit (metres with WGS 84).
Read bearing for the constant direction of travel, available in
degrees through . Unlike a geodesic, a rhumb route
follows the same compass bearing along its path.
Properties
| Name | Type | Description |
|---|---|---|
bearing[get]
|
Angle!T | Compass bearing maintained along the route, represented as an Angle.
|
distance[get]
|
T | Distance along the selected rhumb route, in the ellipsoid's linear unit. |
Example
Example using a RhumbInverseResult.
import geodesy;
const solver = Rhumb!double .fromEllipsoid(wgs84!double());
const start = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
const end = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(47.07071),
Longitude!double .fromDegrees(15.43950));
const result = solver .inverse(start, end);
assert(result .distance > 0.0);