Skip to main content

Class: FlightPathTurnCalculator

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

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

NameTypeDescription
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

Defined in

src/sdk/flightplan/FlightPathTurnCalculator.ts:41