Skip to main content

Class: G3XFmsUtils

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:8

G3X FMS utils

Constructors

Constructor

new G3XFmsUtils(): G3XFmsUtils

Returns

G3XFmsUtils

Methods

getVfrApproachName()

static getVfrApproachName(approach): string

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:97

Gets a G3X Touch-formatted name for a VFR approach.

Parameters

ParameterTypeDescription
approachGarminVfrApproachProcedureThe approach for which to get a name.

Returns

string

The G3X Touch-formatted name for the specified VFR approach.


sortApproach()

static sortApproach(a, b): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:62

Gets the sorting order of two approaches.

Parameters

ParameterTypeDescription
aApproachProcedureThe first approach to sort.
bApproachProcedureThe second approach to sort.

Returns

number

A negative number if approach a comes before approach b, a positive number if approach a comes after approach b, or zero if both orderings are equivalent.


sortApproachItem()

static sortApproachItem(a, b): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:88

Gets the sorting order of two approach items.

Parameters

ParameterTypeDescription
aApproachListItemThe first approach item to sort.
bApproachListItemThe second approach item to sort.

Returns

number

A negative number if approach item a comes before approach item b, a positive number if approach item a comes after approach item b, or zero if both orderings are equivalent.


sortRunway()

static sortRunway(a, b): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:42

Gets the sorting order of two runways.

Parameters

ParameterTypeDescription
aAirportRunwayThe first runway to sort.
bAirportRunwayThe second runway to sort.

Returns

number

A negative number if runway a comes before runway b, a positive number if runway a comes after runway b, or zero if both orderings are equivalent.


sortVfrApproach()

static sortVfrApproach(a, b): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:113

Gets the sorting order of two VFR approaches.

Parameters

ParameterTypeDescription
aGarminVfrApproachProcedureThe first approach to sort.
bGarminVfrApproachProcedureThe second approach to sort.

Returns

number

A negative number if approach a comes before approach b, a positive number if approach a comes after approach b, or zero if both orderings are equivalent.


sortVfrApproachItem()

static sortVfrApproachItem(a, b): number

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/FlightPlan/G3XFmsUtils.ts:139

Gets the sorting order of two VFR approach items.

Parameters

ParameterTypeDescription
aVfrApproachListItemThe first approach item to sort.
bVfrApproachListItemThe second approach item to sort.

Returns

number

A negative number if approach item a comes before approach item b, a positive number if approach item a comes after approach item b, or zero if both orderings are equivalent.