Function MolodenskyBadekas10.tryFromArcSecondsAndPpm
Prepare a local-pivot frame transformation from published EPSG units.
static bool tryFromArcSecondsAndPpm(
const T translationX,
const T translationY,
const T translationZ,
const T rotationXArcSeconds,
const T rotationYArcSeconds,
const T rotationZArcSeconds,
const T scaleDifferencePpm,
const T evaluationPointX,
const T evaluationPointY,
const T evaluationPointZ,
out MolodenskyBadekas10!(T,convention) result
) pure nothrow @nogc @safe;
Use the translation, rotation, scale and evaluation-point values
from the same published transformation. Rotations use arc-seconds,
scale uses ppm, and the evaluation-point XYZ values use the same
linear unit as the source coordinates. This checked form returns
false for unsupported values.
Translation and evaluation-point inputs use the same linear unit as the geocentric coordinates to which the prepared transform will be applied.
Example
Example checking EPSG-unit construction without throwing.
import geodesy;
PositionVectorMolodenskyBadekas!double transform;
assert(PositionVectorMolodenskyBadekas!double .tryFromArcSecondsAndPpm(
1.0, 2.0, 3.0,
0.1, 0.2, 0.3,
0.4,
4.0, 5.0, 6.0,
transform));
assert(transform .baseParameters .translationX == 1.0);