Function UpsProjection.tryReverse
Convert UPS easting and northing back to latitude and longitude.
bool tryReverse(
const ProjectedCoordinate!T source,
out GeographicCoordinate!T result
) const pure nothrow @nogc @safe;
This checked form returns false for grid coordinates outside the
valid represented UPS region.
Example
Example reversing a prepared UPS coordinate.
import geodesy;
const projection = UpsProjection!double .fromHemisphere(
UpsHemisphere .north);
const point = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(85.0),
Longitude!double .fromDegrees(20.0));
GeographicCoordinate!double result;
assert(projection .tryReverse(projection .forward(point), result));
assert(result .latitude .degrees > 84.0);