Class RouteWarningMatch
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
One warning against the route, found or not.
public sealed record RouteWarningMatch : IEquatable<RouteWarningMatch>
- Inheritance
-
RouteWarningMatch
- Implements
- Inherited Members
Constructors
RouteWarningMatch(RouteWarning, RouteWarningRelation, int?, double, double, double, RouteFinding?)
One warning against the route, found or not.
public RouteWarningMatch(RouteWarning Warning, RouteWarningRelation Relation, int? LegIndex, double StartDistanceMeters, double EndDistanceMeters, double ClosestMeters, RouteFinding? Finding)
Parameters
WarningRouteWarningThe warning.
RelationRouteWarningRelationHow it relates to the route.
LegIndexint?The leg where the route first meets it, or
nullwhen off the route.StartDistanceMetersdoubleDistance from departure to where the route first meets it (or passes closest);
NaNwhen off.EndDistanceMetersdoubleDistance from departure to where the route leaves it;
NaNwhen off.ClosestMetersdoubleThe least distance between the track and the warning, 0 when the track crosses it.
FindingRouteFindingThe finding, or
nullwhen off the route.
Properties
ClosestMeters
The least distance between the track and the warning, 0 when the track crosses it.
public double ClosestMeters { get; init; }
Property Value
EndDistanceMeters
Distance from departure to where the route leaves it; NaN when off.
public double EndDistanceMeters { get; init; }
Property Value
Finding
The finding, or null when off the route.
public RouteFinding? Finding { get; init; }
Property Value
LegIndex
The leg where the route first meets it, or null when off the route.
public int? LegIndex { get; init; }
Property Value
- int?
Relation
How it relates to the route.
public RouteWarningRelation Relation { get; init; }
Property Value
StartDistanceMeters
Distance from departure to where the route first meets it (or passes closest); NaN when off.
public double StartDistanceMeters { get; init; }
Property Value
Warning
The warning.
public RouteWarning Warning { get; init; }