Function MolodenskyBadekas10.tryFromCanonical
Prepare a local-pivot transformation from an existing Helmert7 parameter set.
static bool tryFromCanonical(
const Helmert7!(T,convention) baseParameters,
const T evaluationPointX,
const T evaluationPointY,
const T evaluationPointZ,
out MolodenskyBadekas10!(T,convention) result
) pure nothrow @nogc @safe;
Use this factory when the published Molodensky-Badekas operation
supplies a convention-specific set of seven parameters plus three
source-frame XYZ coordinates for its evaluation point. These pivot
coordinates must use the same length unit as source XYZ. On failure
return false instead of throwing.
Parameters
| Name | Description |
|---|---|
| baseParameters | Convention-specific Helmert-family parameters. |
| evaluationPointX | Finite source-geocentric X ordinate. |
| evaluationPointY | Finite source-geocentric Y ordinate. |
| evaluationPointZ | Finite source-geocentric Z ordinate. |
| result | Receives the prepared transform on success. |
Returns
true when the evaluation point and derived equivalent Helmert
parameters are finite and representable; otherwise false.
Example
Example checking canonical construction without throwing.
import geodesy;
PositionVectorMolodenskyBadekas!double transform;
assert(PositionVectorMolodenskyBadekas!double .tryFromCanonical(
PositionVectorHelmert!double .init,
1.0, 2.0, 3.0,
transform));
assert(transform .evaluationPointY == 2.0);