Function RhumbLine.bearing

Constant canonical bearing.

Angle!T bearing() const pure nothrow @nogc @property @safe;

Example

Example reading RhumbLine bearing.

import geodesy;
const solver = Rhumb!double.fromEllipsoid(wgs84!double());
const start = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(48.0),
    Longitude!double.fromDegrees(16.0));
assert(solver.line(
    start,
    Angle!double.fromDegrees(45.0)).bearing.degrees == 45.0);