Class: FlightPathTurnCalculator
A flight path calculator for turns between legs.
Constructors
constructor
• new FlightPathTurnCalculator(): FlightPathTurnCalculator
Returns
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
Name | 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
Defined in
src/sdk/flightplan/FlightPathTurnCalculator.ts:41