Function toCoordinateFrame

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

CoordinateFrameHelmert!T toCoordinateFrame(T)(
  const Helmert7!(T,HelmertConvention.positionVector) source
) pure nothrow @nogc @safe
if (isGeodesyScalar!T);

Translations and scale difference are preserved. All three rotations are negated. The represented source-to-target transformation is unchanged.

Example

Example converting Position Vector parameters to Coordinate Frame.

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