Show / Hide Table of Contents

Struct Gradient

Tool that offer a set of gradient related computations

Namespace: FpAssistantCore.GeneralAviation
Assembly: FpAssistantCoreScl.dll
Syntax
public struct Gradient

Constructors

View Source

Gradient(GradientUnitTypes, Double)

Constructor to initialise with a single seed value

Declaration
public Gradient(GradientUnitTypes gradientUnitType, double value)
Parameters
Type Name Description
GradientUnitTypes gradientUnitType

Identifies which property will be assign the initial seed value. GradientUnitTypes

System.Double value

Value that will be assigned to the property identified by GradientUnitTypes parameter

Remarks

As all properties are connected only one value is needed for the others to be calculated

Examples
Gradient gradient = new Gradient(GradientUnitTypes.Percentage, 75);

Properties

View Source

FeetPerKm

Ft/km Property

Declaration
public double FeetPerKm { get; set; }
Property Value
Type Description
System.Double

Feet Per km value (Ft/km)

View Source

FeetPerNM

Ft/NM Property

Declaration
public double FeetPerNM { get; set; }
Property Value
Type Description
System.Double

Feet Per NM value (Ft/NM)

View Source

MetresPerKm

m/km Property

Declaration
public double MetresPerKm { get; set; }
Property Value
Type Description
System.Double

Metres Per km value (m/km)

View Source

MetresPerNM

m/NM Property

Declaration
public double MetresPerNM { get; set; }
Property Value
Type Description
System.Double

Metres Per NM value (m/NM)

View Source

Percentage

Percentage Property

Declaration
public double Percentage { get; set; }
Property Value
Type Description
System.Double

Percentage value

Remarks

Must be > 0 otherwise ArgumentOutOfRangeException will be thrown

View Source

SeedGradientUnit

Seed unit

Declaration
public readonly GradientUnitTypes SeedGradientUnit { get; }
Property Value
Type Description
GradientUnitTypes

GradientUnitTypes of the seed value

View Source

SlopeDegrees

Slope Property

Declaration
public double SlopeDegrees { get; set; }
Property Value
Type Description
System.Double

Value of the slope

Methods

View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
View Source

ToString(GradientUnitTypes)

Declaration
public string ToString(GradientUnitTypes gradientUnitType)
Parameters
Type Name Description
GradientUnitTypes gradientUnitType
Returns
Type Description
System.String
View Source

ToString(IFormatProvider, GradientUnitTypes)

Declaration
public string ToString(IFormatProvider provider, GradientUnitTypes gradientUnitType)
Parameters
Type Name Description
IFormatProvider provider
GradientUnitTypes gradientUnitType
Returns
Type Description
System.String
  • View Source
In This Article
Back to top Copyright 2018-2024 CADology Limited