Function GeodesicLine.arcPosition
Evaluate a signed auxiliary-sphere arc along the prepared line.
Example
Example evaluating an arc with throwing failure semantics.
const solver =
Geodesic!double .fromEllipsoid(
Ellipsoid!double .sphere(6_371_000.0));
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 .arcPosition(
Angle!double .fromDegrees(45.0));
assert(result .position .longitude .degrees > 44.999999);