Struct AirSpeed
AirSpeed: Class for working with a speed of an aircraft
Implements
Namespace: FpAssistantCore.GeneralAviation
Assembly: FpAssistantCoreScl.dll
Syntax
public struct AirSpeed
Constructors
View SourceAirSpeed(Double, AirSpeedUnits)
Constructor to initalise with a specific speed value and unit type
Declaration
public AirSpeed(double airSpeedValue, AirSpeedUnits airSpeedUnit)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|
System.Double | Numerical value of the air speed |
ValueUnit
The type of measurement unit of the air speed value
Declaration
public readonly 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 |
---|---|
System.Boolean | 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 |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
RadiusOfTurn(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, Boolean)
Calculation for the Radius Of Turn
Declaration
public LinearDistance RadiusOfTurn(Angle angleOfBank, bool overide3DegreesLimit)
Parameters
Type | Name | Description |
---|---|---|
Angle | angleOfBank | Angle of bank |
System.Boolean | overide3DegreesLimit | Overide 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 |
System.Double | rateOfTurn | Rate of turn |
Returns
Type | Description |
---|---|
LinearDistance | Radius of Turn in either KM or NM |
Remarks
Static member
RadiusOfTurn(Double)
Calculation for the Radius Of Turn
Declaration
public LinearDistance RadiusOfTurn(double rateOfTurn)
Parameters
Type | Name | Description |
---|---|---|
System.Double | rateOfTurn | Rate of turn |
Returns
Type | Description |
---|---|
LinearDistance | Radius of Turn in either KM or NM |
RateOfTurn(Angle, Boolean)
Calculation for the Rate Of Turn
Declaration
public double RateOfTurn(Angle angleOfBank, bool overide3DegreesLimit)
Parameters
Type | Name | Description |
---|---|---|
Angle | angleOfBank | Value of the angle of bank (α) |
System.Boolean | overide3DegreesLimit | Overide to calculate an R value greater than 3 degrees/second |
Returns
Type | Description |
---|---|
System.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, Boolean)
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 overide3DegreesLimit)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | speed | Air speed value used in the calculation |
Angle | angleOfBank | Value of the angle of bank (α) |
System.Boolean | overide3DegreesLimit | Overide to calculate an R value greater than 3 degrees/second |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.String | Returns a formatted string containing the AirSpeed value |
ToString(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 |
---|---|---|
System.String | format | Format patterns for double |
Returns
Type | Description |
---|---|
System.String | Returns a formatted string containing the AirSpeed value |
Operators
View SourceEquality(AirSpeed, AirSpeed)
Declaration
public static bool operator ==(AirSpeed left, AirSpeed right)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | left | |
AirSpeed | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(AirSpeed, AirSpeed)
Declaration
public static bool operator !=(AirSpeed left, AirSpeed right)
Parameters
Type | Name | Description |
---|---|---|
AirSpeed | left | |
AirSpeed | right |
Returns
Type | Description |
---|---|
System.Boolean |