Function PolarStereographic.tryReverseFactors

Compute factors at a projected point without throwing.

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

Example

Example checking factors from a projected Polar Stereographic point.

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);
ConformalProjectionFactors!double factors;
assert(projection.tryReverseFactors(
    ProjectedCoordinate!double.fromComponents(
        3_320_416.74736, 632_668.43127),
    factors));
assert(factors.pointScale > 0.994);