Struct Speed
- Namespace
- Cavok
- Assembly
- Cavok.dll
A wind speed as reported.
public readonly record struct Speed : IEquatable<Speed>
- Implements
- Inherited Members
Constructors
Speed(int, SpeedUnit, bool)
A wind speed as reported.
public Speed(int Value, SpeedUnit Unit, bool IsAbove = false)
Parameters
ValueintThe reported value.
UnitSpeedUnitThe unit of the value.
IsAboveboolTrue when reported as "more than" (
P49MPS,P99KT).
Properties
IsAbove
True when reported as "more than" (P49MPS, P99KT).
public bool IsAbove { get; init; }
Property Value
Unit
The unit of the value.
public SpeedUnit Unit { get; init; }
Property Value
Value
The reported value.
public int Value { get; init; }
Property Value
Methods
ToKnots()
The speed converted to knots.
public double ToKnots()
Returns
- double
The speed in knots.