Function LambertConformalConic.tryForwardFactors

Compute convergence and point scale without throwing.

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

Example

Example obtaining LCC factors without throwing.

import geodesy;
const p = LambertConformalConic!double.fromTwoStandardParallels(
    wgs84!double(),
    Latitude!double.fromDegrees(40.0),
    Longitude!double.fromDegrees(-96.0),
    Latitude!double.fromDegrees(33.0),
    Latitude!double.fromDegrees(45.0),
    0.0, 0.0);
ConformalProjectionFactors!double factors;
assert(p.tryForwardFactors(
    GeographicCoordinate!double.fromComponents(
        Latitude!double.fromDegrees(33.0),
        Longitude!double.fromDegrees(-90.0)),
    factors));
assert(factors.pointScale > 0.999999);