Function forwardUps

Automatic UPS forward projection with throwing failure semantics.

UpsCoordinate!T forwardUps(T)(
  const GeographicCoordinate!T source
) @safe
if (isGeodesyScalar!T);

Example

Example using automatic UPS forward projection.

import geodesy;
const point = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(-85.0),
    Longitude!double.fromDegrees(20.0));
assert(forwardUps(point).hemisphere == UpsHemisphere.south);