Function applyPositionVectorHelmert

Return XYZ coordinates in the target frame using Position Vector parameters.

GeocentricCoordinate!T applyPositionVectorHelmert(T)(
  const GeocentricCoordinate!T source,
  const Helmert7!(T,HelmertConvention.positionVector) transform
) @safe
if (isGeodesyScalar!T);

The parameters must describe the requested source-to-target direction. Use tryApplyPositionVectorHelmert for non-throwing error handling.

Parameters

NameDescription
source Source geocentric coordinate.
transform Position Vector parameters with translations in the same linear unit.

Returns

The target geocentric coordinate.

Throws

GeodesyValueException when transformation arithmetic cannot produce a finite representable target.

Example

Example applying an EPSG 1033 Position Vector transform.

import geodesy;
const source = GeocentricCoordinate!double.fromComponents(1.0, 2.0, 3.0);
const target = applyPositionVectorHelmert(
    source, PositionVectorHelmert!double.init);
assert(target == source);