Function applyCoordinateFrameHelmert

Return XYZ coordinates in the target frame using Coordinate Frame parameters.

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

Use the published Coordinate Frame convention and source-to-target direction. Use tryApplyCoordinateFrameHelmert to handle invalid arithmetic without exceptions.

Parameters

NameDescription
source Source geocentric coordinate.
transform Coordinate Frame 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 1032 Coordinate Frame transform.

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