Function TransverseMercator.tryReverseFactors
Compute conformal factors for a represented projected coordinate.
bool tryReverseFactors(
const ProjectedCoordinate!T source,
out ConformalProjectionFactors!T result
) const pure nothrow @nogc @safe;
The accepted represented-coordinate domain is identical to
tryReverse, including pole canonicalization and representation-
aware sheet-boundary handling.
Example
Example computing factors from a projected coordinate without throwing.
import geodesy;
const projection = TransverseMercator!double .fromParameters(
wgs84!double(),
Latitude!double .fromDegrees(0.0),
Longitude!double .fromDegrees(15.0),
0.9996,
500_000.0,
0.0);
const source = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
const projected = projection .forward(source);
ConformalProjectionFactors!double factors;
assert(projection .tryReverseFactors(projected, factors));
assert(factors .pointScale > 0.0);