Skip to main content

Class: FlightPathTurnCalculator

Defined in: src/sdk/flightplan/FlightPathTurnCalculator.ts:12

A flight path calculator for turns between legs.

Constructors​

Constructor​

new FlightPathTurnCalculator(): FlightPathTurnCalculator

Returns​

FlightPathTurnCalculator

Methods​

computeTurns()​

computeTurns(legs, startIndex, count, desiredTurnRadius, desiredCourseReversalTurnRadius, desiredTurnAnticipationTurnRadius): void

Defined in: src/sdk/flightplan/FlightPathTurnCalculator.ts:41

Computes leg to leg turns for a given sequence of legs. Turns will only be calculated between legs with defined flight path vectors and no pre-existing egress/ingress transition (unless it is a leg-to-leg turn) at the junction of the turn.

Parameters​

ParameterTypeDescription
legsLegDefinition[]A sequence of legs.
startIndexnumberThe index of the first leg for which to compute turns.
countnumberThe total number of legs for which to compute turns.
desiredTurnRadiusnumberThe desired general turn radius, in meters.
desiredCourseReversalTurnRadiusnumberThe desired course reversal turn radius, in meters.
desiredTurnAnticipationTurnRadiusnumberThe desired turn anticipation turn radius, in meters.

Returns​

void