GeodesicLine.tryArcPosition - multiple declarations
Function GeodesicLine.tryArcPosition
Find a position using geodesic arc length instead of ground distance.
bool tryArcPosition(
const Angle!T arc,
out GeodesicDirectResult!T result
) const pure nothrow @nogc @safe;
Pass an Angle describing the signed auxiliary-sphere arc, not a
distance in metres. Most callers wanting positions every fixed number
of metres should use tryPosition instead.
Example
Example evaluating a prepared line by auxiliary-sphere arc.
const sphere = Ellipsoid!double .sphere(6_371_000.0);
const solver = Geodesic!double .fromEllipsoid(sphere);
const start = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(0.0),
Longitude!double .fromDegrees(10.0));
const line = GeodesicLine!double .fromGeodesic(
solver, start, Angle!double .fromDegrees(90.0));
GeodesicDirectResult!double result;
assert(line .tryArcPosition(
Angle!double .fromDegrees(90.0),
result));
assert(result .position .longitude .degrees > 99.999999);
Function GeodesicLine.tryArcPosition
Evaluate a signed auxiliary-sphere arc together with advanced segment quantities.
bool tryArcPosition(
const Angle!T arc,
out GeodesicDirectResult!T result,
out GeodesicQuantities!T quantities
) const pure nothrow @nogc @safe;