Function Helmert14.apply

Convert geocentric XYZ into the target frame at the observation epoch.

GeocentricCoordinate!T apply(
  const GeocentricCoordinate!T source,
  const Epoch!T observationEpoch
) const @safe;

The stored reference epoch belongs to the parameter definition; the observation epoch belongs to the coordinate being transformed. Use tryApply for a non-throwing alternative.

Throws

GeodesyValueException when parameter evaluation or spatial transformation fails.

Example

Example applying a dynamic Position Vector transform.

import geodesy;
const h = PositionVectorHelmert14!double.fromCanonical(
    PositionVectorHelmert!double.init,
    0.001, 0, 0, 0, 0, 0, 0,
    Epoch!double.fromDecimalYear(2000.0));
const target = h.apply(
    GeocentricCoordinate!double.fromComponents(0, 0, 0),
    Epoch!double.fromDecimalYear(2010.0));
assert(target.x == 0.01);
}