Skip to main content

Interface: FlightPathLegCalculator

Defined in: src/sdk/flightplan/FlightPathLegCalculator.ts:15

A flight path calculator for individual flight plan legs.

Methods

calculate()

calculate(legs, calculateIndex, activeLegIndex, state, resolveIngressToEgress?): LegCalculations

Defined in: src/sdk/flightplan/FlightPathLegCalculator.ts:24

Calculates flight path vectors for a flight plan leg and adds the calculations to the leg.

Parameters

ParameterTypeDescription
legsLegDefinition[]A sequence of flight plan legs.
calculateIndexnumberThe index of the leg to calculate.
activeLegIndexnumberThe index of the active leg.
stateFlightPathStateThe current flight path state.
resolveIngressToEgress?boolean-

Returns

LegCalculations

The flight plan leg calculations.