Function tryApplyPositionVectorHelmert
Apply EPSG method 1033 Position Vector in the source-to-target direction.
bool tryApplyPositionVectorHelmert(T)(
const GeocentricCoordinate!T source,
const Helmert7!(T,HelmertConvention.positionVector) transform,
out GeocentricCoordinate!T result
) pure nothrow @nogc @safe
if (isGeodesyScalar!T);
Parameters
| Name | Description |
|---|---|
| source | Source geocentric coordinate. |
| transform | Position Vector parameters using the same linear unit for
translations as source. |
| result | Receives the target coordinate on success. |
Returns
true when scale-factor and transformation arithmetic produce a
finite target in scalar type T; otherwise false. On failure
result is initialized to on entry and has no guaranteed value on failure.
Example
Example applying a Position Vector transform without throwing.
import geodesy;
const source = GeocentricCoordinate!double .fromComponents(1.0, 2.0, 3.0);
GeocentricCoordinate!double target;
assert(tryApplyPositionVectorHelmert(
source, PositionVectorHelmert!double .init, target));
assert(target == source);