Function GeodesicLine.arcPositionUnrolled
Evaluate a signed auxiliary-sphere arc and retain continuous longitude.
Example
Example evaluating an unrolled arc position.
const sphere = Ellipsoid!double .sphere(1.0);
const solver = Geodesic!double .fromEllipsoid(sphere);
const start = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(0.0),
Longitude!double .fromDegrees(0.0));
const line = GeodesicLine!double .fromGeodesic(
solver, start, Angle!double .fromDegrees(90.0));
const result =
line .arcPositionUnrolled(
Angle!double .fromDegrees(-450.0));
assert(result .unrolledLongitude .degrees < -449.999999);
}