Function LambertAzimuthalEqualArea.forward
Put a geographic position onto this equal-area map.
Returns easting and northing in the ellipsoid's linear unit. Use
tryForward when projection failure should not throw.
Example
Example projecting Vienna in an EPSG:3035-style projection.
import geodesy;
const projection =
LambertAzimuthalEqualArea!double .fromParameters(
wgs84!double(),
Latitude!double .fromDegrees(52.0),
Longitude!double .fromDegrees(10.0),
4_321_000.0,
3_210_000.0);
const projected = projection .forward(
GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208)));
assert(projected .easting > 4_000_000.0);