Function EqualEarth.forward

Project a geographic coordinate; throws on failure.

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

Example

Example

project an equatorial point.

import geodesy.ellipsoid : wgs84;
auto projection = EqualEarth!double.fromParameters(
    wgs84!double(), Longitude!double.fromDegrees(0), 0.0, 0.0);
auto projected = projection.forward(
    GeographicCoordinate!double.fromComponents(
        Latitude!double.fromDegrees(0),
        Longitude!double.fromDegrees(0)));
assert(projected.northing == 0.0);