Function UpsProjection.reverse

Convert UPS grid coordinates back into a geographic position.

GeographicCoordinate!T reverse(
  const ProjectedCoordinate!T source
) const @safe;

Use tryReverse when invalid coordinates should not throw.

Example

Example reversing a south UPS coordinate.

import geodesy;
const projection = UpsProjection!double.fromHemisphere(
    UpsHemisphere.south);
const point = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(-85.0),
    Longitude!double.fromDegrees(20.0));
assert(projection.reverse(
    projection.forward(point)).latitude.degrees < -84.0);