Function Rhumb.tryLine
Prepare a reusable constant-bearing rhumb line without throwing.
bool tryLine(
const GeographicCoordinate!T start,
const Angle!T bearing,
out RhumbLine!T result
) const pure nothrow @nogc @safe;
Example
Example preparing a rhumb line without throwing.
import geodesy;
const solver = Rhumb!double .fromEllipsoid(wgs84!double());
const start = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
RhumbLine!double line;
assert(solver .tryLine(
start,
Angle!double .fromDegrees(73.0),
line));