Function TransverseMercator.tryForwardFactors
Compute conformal factors at a geographic source coordinate.
bool tryForwardFactors(
const GeographicCoordinate!T source,
out ConformalProjectionFactors!T result
) const pure nothrow @nogc @safe;
The accepted domain is identical to tryForward. Meridian
convergence is returned as a strongly typed angle and point scale
is dimensionless.
Example
Example computing conformal factors 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));
ConformalProjectionFactors!double factors;
assert(projection .tryForwardFactors(source, factors));
assert(factors .pointScale > 0.0);