Function PolarStereographic.tryForwardFactors

Compute convergence and point scale for a geographic point without throwing.

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

Example

Example checking Polar Stereographic convergence and scale.

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.tryForwardFactors(
    GeographicCoordinate!double.fromComponents(
        Latitude!double.fromDegrees(73.0),
        Longitude!double.fromDegrees(44.0)),
    factors));
assert(factors.pointScale > 0.994);