Struct GeodesicLineUnrolledResult

Position along a geodesic with longitude allowed to pass beyond 180 degrees.

struct GeodesicLineUnrolledResult(T)
  
if (isGeodesyScalar!T);

Use this result when you follow a path across the antimeridian or around the Earth and want to keep track of the full longitude change. Read unrolledLongitude as an Angle; unlike a regular Longitude, it can include complete turns instead of wrapping back into the normal range.

Properties

NameTypeDescription
finalAzimuth[get] Angle!TForward azimuth at the evaluated position.
latitude[get] Latitude!TGeodetic latitude at the evaluated position.
unrolledLongitude[get] Angle!TContinuous longitude, allowed to extend beyond one revolution.

Example

Example representing a longitude beyond the ordinary geographic interval.

const value =
    GeodesicLineUnrolledResult!double.fromComponents(
        Latitude!double.fromDegrees(0.0),
        Angle!double.fromDegrees(540.0),
        Angle!double.fromDegrees(90.0));
assert(value.unrolledLongitude.degrees == 540.0);