Function applyCoordinateFrameHelmert

Apply EPSG method 1032 Coordinate Frame in the source-to-target direction.

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

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);