Function PolarStereographic.reverse

Convert polar-grid coordinates back to a geographic position.

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

Use tryReverse for a non-throwing failure result.

Example

Example reversing a projected point with the throwing convenience API.

import geodesy;
const projection = PolarStereographic!double.fromParameters(
    wgs84!double(), Latitude!double.fromDegrees(90.0),
    Longitude!double.fromDegrees(0.0), 0.994,
    2_000_000.0, 2_000_000.0);
const result = projection.reverse(
    ProjectedCoordinate!double.fromComponents(
        3_320_416.74736, 632_668.43127));
assert(result.longitude.degrees > 43.9);