Function GeocentricTranslation.fromComponents

Construct source-to-target translation parameters.

static GeocentricTranslation!T fromComponents(
  const T deltaX,
  const T deltaY,
  const T deltaZ
) @safe;

Parameters

NameDescription
deltaX Finite X translation in the coordinate linear unit.
deltaY Finite Y translation in the same linear unit.
deltaZ Finite Z translation in the same linear unit.

Returns

The translation parameter set.

Throws

GeodesyValueException when any parameter is non-finite.

Example

Example constructing source-to-target translation parameters.

import geodesy;
const shift = GeocentricTranslation!double.fromComponents(
    84.87, 96.49, 116.95);
assert(shift.deltaZ == 116.95);