Struct Rhumb
Prepared ellipsoidal rhumb solver.
struct Rhumb(T)
if (isGeodesyScalar!T);
The solver is immutable after construction and may be reused across direct,
inverse, and line-preparation operations. is invalid.
Properties
| Name | Type | Description |
|---|---|---|
ellipsoid[get]
|
Ellipsoid!T | Solver ellipsoid. |
isValid[get]
|
bool | True when this solver contains supported prepared ellipsoid state. |
Methods
| Name | Description |
|---|---|
direct
(start, bearing, distance)
|
Solve a signed-distance direct rhumb problem or throw. |
fromEllipsoid
(ellipsoid)
|
Prepare a rhumb solver or throw. |
inverse
(start, end)
|
Solve the shortest inverse rhumb problem or throw. |
line
(start, bearing)
|
Prepare a reusable constant-bearing rhumb line or throw. |
tryDirect
(start, bearing, distance, result)
|
Find a destination from a start point, constant bearing and distance. |
tryFromEllipsoid
(ellipsoid, result)
|
Prepare a rhumb solver without throwing. |
tryInverse
(start, end, result)
|
Find distance and constant bearing between two positions without throwing. |
tryLine
(start, bearing, result)
|
Prepare a reusable constant-bearing rhumb line without throwing. |
Example
Example using a Rhumb solver.
import geodesy;
const solver = Rhumb!double .fromEllipsoid(wgs84!double());
assert(solver .isValid);