Skip to main content

Class: FlightPathLegToLegCalculator

Defined in: src/sdk/flightplan/flightpath/FlightPathLegToLegCalculator.ts:21

A calculator of lateral flight paths for transitions between adjacent flight plan legs.

Constructors

Constructor

new FlightPathLegToLegCalculator(): FlightPathLegToLegCalculator

Returns

FlightPathLegToLegCalculator

Methods

calculate()

calculate(legs, startIndex, count, state): void

Defined in: src/sdk/flightplan/flightpath/FlightPathLegToLegCalculator.ts:43

Calculates paths for transitions between adjacent flight plan legs.

Parameters

ParameterTypeDescription
legsLegDefinition[]An array containing the legs for which to calculate transitions.
startIndexnumberThe index of the first leg for which to calculate transitions.
countnumberThe total number of legs for which to calculate transitions.
stateFlightPathPlaneStateThe airplane state to use for calculations.

Returns

void