Function TopocentricCoordinate.tryFromComponents
Construct finite East/North/Up components without throwing.
static bool tryFromComponents(
const T east,
const T north,
const T up,
out TopocentricCoordinate result
) pure nothrow @nogc @safe;
Parameters
| Name | Description |
|---|---|
| east | Finite East component in the frame linear unit. |
| north | Finite North component in the same linear unit. |
| up | Finite Up component in the same linear unit. |
| result | Receives the coordinate on success. |
Returns
true when all components are finite; otherwise false. On
failure result is initialized to on entry and has no guaranteed value on failure.
Example
Example checking local ENU components without throwing.
import geodesy;
TopocentricCoordinate!double local;
assert(TopocentricCoordinate!double .tryFromComponents(
12.5, -3.0, 1.25, local));
assert(local .east == 12.5);