Function UpsCoordinate.fromComponents
Construct a tagged UPS coordinate or throw.
static UpsCoordinate fromComponents(
const UpsHemisphere hemisphere,
const T easting,
const T northing
) @safe;
Example
Example constructing a tagged UPS coordinate.
import geodesy;
const coordinate = UpsCoordinate!double .fromComponents(
UpsHemisphere .north,
2_100_000.0,
1_900_000.0);
assert(coordinate .easting == 2_100_000.0);