Function UpsCoordinate.isValid

True when this tagged coordinate satisfies the UPS representation policy.

bool isValid() const pure nothrow @nogc @property @safe;

Example

Example checking a tagged UPS coordinate.

import geodesy;
const coordinate = UpsCoordinate!double.fromComponents(
    UpsHemisphere.north, 2_000_000.0, 2_000_000.0);
assert(coordinate.isValid);
assert(!UpsCoordinate!double.init.isValid);