Class PassageStretch
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
A run of consecutive samples that share a gap or a low-confidence reason.
public sealed record PassageStretch : IEquatable<PassageStretch>
- Inheritance
-
PassageStretch
- Implements
- Inherited Members
Constructors
PassageStretch(PassageStretchKind, int, int, int, int, double, double, DateTimeOffset, DateTimeOffset)
A run of consecutive samples that share a gap or a low-confidence reason.
public PassageStretch(PassageStretchKind Kind, int FirstSample, int LastSample, int FirstLeg, int LastLeg, double StartDistanceMeters, double EndDistanceMeters, DateTimeOffset StartTime, DateTimeOffset EndTime)
Parameters
KindPassageStretchKindWhat the stretch is.
FirstSampleintIndex of the first sample in the stretch.
LastSampleintIndex of the last sample in the stretch.
FirstLegintIndex of the leg the stretch starts on.
LastLegintIndex of the leg the stretch ends on.
StartDistanceMetersdoubleDistance from the start of the passage to the start of the stretch.
EndDistanceMetersdoubleDistance from the start of the passage to the end of the stretch.
StartTimeDateTimeOffsetThe time at the first sample.
EndTimeDateTimeOffsetThe time at the last sample.
Properties
EndDistanceMeters
Distance from the start of the passage to the end of the stretch.
public double EndDistanceMeters { get; init; }
Property Value
EndTime
The time at the last sample.
public DateTimeOffset EndTime { get; init; }
Property Value
FirstLeg
Index of the leg the stretch starts on.
public int FirstLeg { get; init; }
Property Value
FirstSample
Index of the first sample in the stretch.
public int FirstSample { get; init; }
Property Value
Kind
What the stretch is.
public PassageStretchKind Kind { get; init; }
Property Value
LastLeg
Index of the leg the stretch ends on.
public int LastLeg { get; init; }
Property Value
LastSample
Index of the last sample in the stretch.
public int LastSample { get; init; }
Property Value
LengthMeters
Length of the stretch in metres.
public double LengthMeters { get; }
Property Value
StartDistanceMeters
Distance from the start of the passage to the start of the stretch.
public double StartDistanceMeters { get; init; }
Property Value
StartTime
The time at the first sample.
public DateTimeOffset StartTime { get; init; }