Function UpsProjection.tryForwardFactors
Compute conformal factors in the explicit legal UPS domain.
bool tryForwardFactors(
const GeographicCoordinate!T source,
out ConformalProjectionFactors!T result
) const pure nothrow @nogc @safe;
Example
Example checking UPS factors without throwing.
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 .tryForwardFactors(point, factors));
assert(factors .pointScale > 0.0);