Table of Contents

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

Value int

The reported value.

Unit SpeedUnit

The unit of the value.

IsAbove bool

True when reported as "more than" (P49MPS, P99KT).

Properties

IsAbove

True when reported as "more than" (P49MPS, P99KT).

public bool IsAbove { get; init; }

Property Value

bool

Unit

The unit of the value.

public SpeedUnit Unit { get; init; }

Property Value

SpeedUnit

Value

The reported value.

public int Value { get; init; }

Property Value

int

Methods

ToKnots()

The speed converted to knots.

public double ToKnots()

Returns

double

The speed in knots.