Struct Helmert14
Fourteen time-dependent Helmert parameters with compile-time rotation convention.
The fourteen parameters are the seven static Helmert values plus seven rates. The reference epoch is separate and is not counted as a fifteenth transformation parameter.
Properties
| Name | Type | Description |
|---|---|---|
baseParameters[get]
|
Helmert7!(T,convention) | Static seven-parameter values defined at referenceEpoch.
|
isValid[get]
|
bool | Whether this dynamic parameter set has a valid reference epoch. |
referenceEpoch[get]
|
Epoch!T | Epoch at which baseParameters are defined.
|
rotationRateX[get]
|
T | X rotation rate in radians per year. |
rotationRateY[get]
|
T | Y rotation rate in radians per year. |
rotationRateZ[get]
|
T | Z rotation rate in radians per year. |
scaleDifferenceRate[get]
|
T | Dimensionless scale-difference rate per year. |
translationRateX[get]
|
T | X translation rate in the caller linear unit per year. |
translationRateY[get]
|
T | Y translation rate in the caller linear unit per year. |
translationRateZ[get]
|
T | Z translation rate in the caller linear unit per year. |
Methods
| Name | Description |
|---|---|
apply
(source, observationEpoch)
|
Convert geocentric XYZ into the target frame at the observation epoch. |
evaluate
(observationEpoch)
|
Return the seven static Helmert parameters at the observation epoch. |
fromArcSecondsAndPpm
(translationX, translationY, translationZ, rotationXArcSeconds, rotationYArcSeconds, rotationZArcSeconds, scaleDifferencePpm, translationRateX, translationRateY, translationRateZ, rotationRateXArcSeconds, rotationRateYArcSeconds, rotationRateZArcSeconds, scaleDifferenceRatePpm, referenceEpoch)
|
Create a dynamic transform from published EPSG-style values. |
fromCanonical
(baseParameters, translationRateX, translationRateY, translationRateZ, rotationRateX, rotationRateY, rotationRateZ, scaleDifferenceRate, referenceEpoch)
|
Create a time-dependent frame transform from canonical parameters. |
tryApply
(source, observationEpoch, result)
|
Transform Earth-centred XYZ coordinates at an observation epoch. |
tryEvaluate
(observationEpoch, result)
|
Get the effective seven static parameters for an observation year. |
tryFromArcSecondsAndPpm
(translationX, translationY, translationZ, rotationXArcSeconds, rotationYArcSeconds, rotationZArcSeconds, scaleDifferencePpm, translationRateX, translationRateY, translationRateZ, rotationRateXArcSeconds, rotationRateYArcSeconds, rotationRateZArcSeconds, scaleDifferenceRatePpm, referenceEpoch, result)
|
Build a time-dependent transformation from EPSG-style parameters. |
tryFromCanonical
(baseParameters, translationRateX, translationRateY, translationRateZ, rotationRateX, rotationRateY, rotationRateZ, scaleDifferenceRate, referenceEpoch, result)
|
Build a time-dependent transformation from base parameters and yearly rates. |
Example
Example preparing and applying a time-dependent Helmert transformation.
import geodesy;
const transform = PositionVectorHelmert14!double .fromCanonical(
PositionVectorHelmert!double .init,
0.001, 0.0, 0.0,
0.0, 0.0, 0.0,
0.0,
Epoch!double .fromDecimalYear(2000.0));
const target = transform .apply(
GeocentricCoordinate!double .fromComponents(1.0, 2.0, 3.0),
Epoch!double .fromDecimalYear(2010.0));
assert(target .x == 1.01);