Function toPositionVector

Convert an EPSG 1032 Coordinate Frame parameter set into the equivalent EPSG 1033 Position Vector parameter set.

PositionVectorHelmert!T toPositionVector(T)(
  const Helmert7!(T,HelmertConvention.coordinateFrame) source
) pure nothrow @nogc @safe
if (isGeodesyScalar!T);

Translations and scale difference are preserved. All three rotations are negated.

Example

Example converting Coordinate Frame parameters to Position Vector.

import geodesy;
const cf = CoordinateFrameHelmert!double.fromArcSecondsAndPpm(
    0.0, 0.0, 0.0, 0.0, 0.0, -0.5, 0.0);
const pv = toPositionVector(cf);
assert(pv.rotationZ.radians == -cf.rotationZ.radians);