IGeoPathBase
Description
- Derived from
- Extended by
Base interface for geo paths, without a generic type parameter for the geo path sample type.
The timestamp range of a geo path without any samples defaults to RangeD.Zero. Otherwise, the timestamp range tightly wraps the timestamp values of the geo path samples.
- See also
Public / Methods
AdjustToGround
Adjusts this IGeoPathBase so that its non-airborne parts align with the terrain surface.
First, the samples of this geo path are converted to ground samples:
-
GeoPathSample.Height is set to the ground height.
-
GeoPathSample.Pitch is set to zero.
-
GeoPathSample.Roll is set to zero.
Then, a blend factor is computed for each geo path sample: 0
means that the ground sample will be used in the resulting path, 1
means that the original sample will be used. The blend factor is computed as follows:
ground.Height = surface + height.Start ground.Pitch = 0 ground.Roll = 0 factor = clamp((original.Height - ground.Height) / height.Length, 0, 1)
where ground
is the ground sample, initialized with the values of the original sample, surface
is the ellipsoid height of the terrain surface, original
is the original sample.
Finally, the original sample and ground samples are blend using the computed factor
, and the resulting sample is written to the output geo path.
- See also
GeoPathSampleAt
Returns the path sample at the given index.
If Vertical is not GeoPathValue.Ellipsoid, then GeoPathSample.Height will always be zero. There is no automatic conversion, IGeoPathConverter must be used for that.
- See also
GeoPathSampleOn
Returns an interpolated path sample at the given timestamp value.
If Vertical is not GeoPathValue.Ellipsoid, then GeoPathSample.Height will always be zero. There is no automatic conversion, IGeoPathConverter must be used for that.
- See also
GroundPathSampleAt
Returns the path sample at the given index.
If Vertical is not GeoPathValue.Height, then GroundPathSample.Height will always be zero. There is no automatic conversion, IGeoPathConverter must be used for that.
- See also
GroundPathSampleOn
Returns an interpolated path sample at the given timestamp value.
If Vertical is not GeoPathValue.Height, then GroundPathSample.Height will always be zero. There is no automatic conversion, IGeoPathConverter must be used for that.
- See also
IndexOf
Computes the index of the path sample that has the greatest timestamp which is less than or equal to the given timestamp in.
- See also
Public / Attributes
Stable
The number of stable samples in the geo path.
A geo path sample is stable if the interpolated sample at its timestamp (see TimestampAt) does not change when new samples are added to the geo path.
- See also