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
Parameter | Type | Description |
---|---|---|
approach | GarminVfrApproachProcedure | The 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
Parameter | Type | Description |
---|---|---|
a | ApproachProcedure | The first approach to sort. |
b | ApproachProcedure | The 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
Parameter | Type | Description |
---|---|---|
a | ApproachListItem | The first approach item to sort. |
b | ApproachListItem | The 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
Parameter | Type | Description |
---|---|---|
a | AirportRunway | The first runway to sort. |
b | AirportRunway | The 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
Parameter | Type | Description |
---|---|---|
a | GarminVfrApproachProcedure | The first approach to sort. |
b | GarminVfrApproachProcedure | The 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
Parameter | Type | Description |
---|---|---|
a | VfrApproachListItem | The first approach item to sort. |
b | VfrApproachListItem | The 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.