Function EqualEarth.reverse

Invert a projected point or throw on failure.

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

Example

Example

invert the map origin.

import geodesy.ellipsoid : wgs84;
auto projection = EqualEarth!double.fromParameters(
    wgs84!double(), Longitude!double.fromDegrees(0), 0.0, 0.0);
auto result = projection.reverse(
    ProjectedCoordinate!double.fromComponents(0.0, 0.0));
assert(result.latitude.degrees == 0.0);
}