Function UpsProjection.tryForward

Project within the explicit legal UPS overlap domain without throwing.

bool tryForward(
  const GeographicCoordinate!T source,
  out ProjectedCoordinate!T result
) const pure nothrow @nogc @safe;

Example

Example projecting in prepared north UPS.

import geodesy;
const projection = UpsProjection!double.fromHemisphere(
    UpsHemisphere.north);
const point = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(85.0),
    Longitude!double.fromDegrees(20.0));
ProjectedCoordinate!double result;
assert(projection.tryForward(point, result));
assert(result.easting > 1_200_000.0);