Struct AirSpeed
AirSpeed: Class for working with a speed of an aircraft
Implements
Inherited Members
Namespace: FpAssistantCore.GeneralAviation
Assembly: FpAssistantCoreScl.dll
Syntax
public struct AirSpeed : IEquatable<AirSpeed>
Constructors
View SourceAirSpeed(double, AirSpeedUnits)
Constructor to initialise with a specific speed value and unit type
Declaration
public AirSpeed(double airSpeedValue, AirSpeedUnits airSpeedUnit)
Parameters
Type | Name | Description |
---|---|---|
double | airSpeedValue | Numerical value of the air speed |
AirSpeedUnits | airSpeedUnit | Unit type of the air speed |
Properties
View SourceValue
Contains the numerical value of the air speed
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
double | Numerical value of the air speed |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | AirSpeed value should not be less than 0.0 |
ValueUnit
The type of measurement unit of the air speed value
Declaration
public AirSpeedUnits ValueUnit { get; }
Property Value
Type | Description |
---|---|
AirSpeedUnits | Enum value of the assigned unit |
Methods
View SourceEquals(AirSpeed)
Indicates whether the current vector is AirSpeed to another AirSpeed object
Declaration
public bool Equals(AirSpeed other)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | other | AirSpeed to compare with this AirSpeed |
Returns
Type | Description |
---|---|
bool | true if the current AirSpeed is equal to the AirSpeed parameter; otherwise false |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
View SourceRadiusOfTurn(Angle)
Calculation for the Radius Of Turn
Declaration
public LinearDistance RadiusOfTurn(Angle angleOfBank)
Parameters
Type | Name | Description |
---|---|---|
Angle | angleOfBank | Angle of bank |
Returns
Type | Description |
---|---|
LinearDistance | Radius of Turn in either KM or NM |
RadiusOfTurn(Angle, bool)
Calculation for the Radius Of Turn
Declaration
public LinearDistance RadiusOfTurn(Angle angleOfBank, bool override3DegreesLimit)
Parameters
Type | Name | Description |
---|---|---|
Angle | angleOfBank | Angle of bank |
bool | override3DegreesLimit | Override for 3 degree limit restriction |
Returns
Type | Description |
---|---|
LinearDistance | Radius of Turn in either KM or NM |
RadiusOfTurn(AirSpeed, double)
Calculation for the Radius Of Turn
Declaration
public static LinearDistance RadiusOfTurn(AirSpeed airspeed, double rateOfTurn)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | airspeed | Air speed value used in calculation |
double | rateOfTurn | Rate of turn |
Returns
Type | Description |
---|---|
LinearDistance | Radius of Turn in either KM or NM |
Remarks
Static member
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Rate of turn value should not be less than 0.0 |
RadiusOfTurn(double)
Calculation for the Radius Of Turn
Declaration
public LinearDistance RadiusOfTurn(double rateOfTurn)
Parameters
Type | Name | Description |
---|---|---|
double | rateOfTurn | Rate of turn |
Returns
Type | Description |
---|---|
LinearDistance | Radius of Turn in either KM or NM |
RateOfTurn(Angle, bool)
Calculation for the Rate Of Turn
Declaration
public double RateOfTurn(Angle angleOfBank, bool override3DegreesLimit)
Parameters
Type | Name | Description |
---|---|---|
Angle | angleOfBank | Value of the angle of bank (α) |
bool | override3DegreesLimit | Override to calculate an R value greater than 3 degrees/second |
Returns
Type | Description |
---|---|
double | Rate of turn (R) in degrees/second |
Remarks
This is calculated as follows:
R = (6 355 tan α)/π V, where V is the TAS in km/h; and
2) R = (3 431 tan α)/πV, where V is the TAS in kt
up to a maximum value of 3 degrees/second unless the overide is set
RateOfTurn(AirSpeed, Angle, bool)
Calculation for the Rate Of Turn using a static member where speed in passed as a variable
Declaration
public static double RateOfTurn(AirSpeed speed, Angle angleOfBank, bool override3DegreesLimit)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | speed | Air speed value used in the calculation |
Angle | angleOfBank | Value of the angle of bank (α) |
bool | override3DegreesLimit | Override to calculate an R value greater than 3 degrees/second |
Returns
Type | Description |
---|---|
double | Rate of turn (R) in degrees/second |
Remarks
This is calculated as follows:
R = (6 355 tan α)/π V, where V is the TAS in km/h; and
2) R = (3 431 tan α)/πV, where V is the TAS in kt
up to a maximum value of 3 degrees/second unless the overide is set
ToString()
Converts this instance of the AirSpeed object to a formatted string specifying 'CurrentCulture'
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | Returns a formatted string containing the AirSpeed value |
Overrides
View SourceToString(string)
Converts this instance of the AirSpeed object to a formatted string specifying 'CurrentCulture' with formatting
Declaration
public string ToString(string format)
Parameters
Type | Name | Description |
---|---|---|
string | format | Format patterns for double |
Returns
Type | Description |
---|---|
string | Returns a formatted string containing the AirSpeed value |
Operators
View Sourceoperator ==(AirSpeed, AirSpeed)
Declaration
public static bool operator ==(AirSpeed left, AirSpeed right)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | left | |
AirSpeed | right |
Returns
Type | Description |
---|---|
bool |
operator !=(AirSpeed, AirSpeed)
Declaration
public static bool operator !=(AirSpeed left, AirSpeed right)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | left | |
AirSpeed | right |
Returns
Type | Description |
---|---|
bool |