Function ProjectedCoordinate.fromComponents

Construct from finite easting and northing.

static ProjectedCoordinate fromComponents(
  const T easting,
  const T northing
) @safe;

Parameters

NameDescription
easting Finite easting in the caller-selected linear unit.
northing Finite northing in the same linear unit.

Returns

The constructed coordinate.

Throws

GeodesyValueException when either component is NaN or infinite.

Example

Example constructing a projected coordinate.

import geodesy;
const point = ProjectedCoordinate!double.fromComponents(
    500_000.0, 5_340_000.0);
assert(point.northing == 5_340_000.0);