Interface: FlightPathLegCalculator
Defined in: src/sdk/flightplan/flightpath/FlightPathLegCalculator.ts:27
A flight path calculator for individual flight plan legs.
Methods
calculate()
calculate(
legs,calculateIndex,activeLegIndex,state,options):LegCalculations
Defined in: src/sdk/flightplan/flightpath/FlightPathLegCalculator.ts:37
Calculates flight path vectors for a flight plan leg and adds the calculations to the leg.
Parameters
| Parameter | Type | Description |
|---|---|---|
legs | LegDefinition[] | A sequence of flight plan legs. |
calculateIndex | number | The index of the leg to calculate. |
activeLegIndex | number | The index of the active leg. |
state | FlightPathState | The current flight path state. |
options | Readonly<FlightPathLegCalculationOptions> | Options to use for the calculation. |
Returns
The flight plan leg calculations.