Function UpsProjection.tryReverseFactors

Compute reverse factors for an admitted represented UPS coordinate.

bool tryReverseFactors(
  const ProjectedCoordinate!T source,
  out ConformalProjectionFactors!T result
) const pure nothrow @nogc @safe;

Example

Example checking reverse UPS factors.

import geodesy;
const projection = UpsProjection!double.fromHemisphere(
    UpsHemisphere.north);
const point = GeographicCoordinate!double.fromComponents(
    Latitude!double.fromDegrees(85.0),
    Longitude!double.fromDegrees(20.0));
ConformalProjectionFactors!double factors;
assert(projection.tryReverseFactors(
    projection.forward(point), factors));
assert(factors.pointScale > 0.0);