Function Helmert14.tryFromArcSecondsAndPpm

Build a time-dependent transformation from EPSG-style parameters.

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 translationRateX,
  const T translationRateY,
  const T translationRateZ,
  const T rotationRateXArcSeconds,
  const T rotationRateYArcSeconds,
  const T rotationRateZArcSeconds,
  const T scaleDifferenceRatePpm,
  const Epoch!T referenceEpoch,
  out Helmert14!(T,convention) result
) pure nothrow @nogc @safe;

This factory accepts rotations in arc-seconds, scale in ppm, and corresponding rates per year. The reference epoch describes when those published parameter values apply.

Params use caller linear units for translations, arc-seconds for rotations, ppm for scale difference, and the corresponding units per year for rates.

Example

Example constructing EPSG-style dynamic parameters without throwing.

import geodesy;
PositionVectorHelmert14!double h;
assert(PositionVectorHelmert14!double.tryFromArcSecondsAndPpm(
    0, 0, 0, 0, 0, 0, 0,
    0.001, 0, 0, 0, 0, 0, 0,
    Epoch!double.fromDecimalYear(2000.0),
    h));
assert(h.translationRateX == 0.001);