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
Parameter | Type | Description |
---|---|---|
legs | LegDefinition [] | A sequence of legs. |
startIndex | number | The index of the first leg for which to compute turns. |
count | number | The total number of legs for which to compute turns. |
desiredTurnRadius | number | The desired general turn radius, in meters. |
desiredCourseReversalTurnRadius | number | The desired course reversal turn radius, in meters. |
desiredTurnAnticipationTurnRadius | number | The desired turn anticipation turn radius, in meters. |
Returns
void