Skip to main content

Class: TurnToCourseBuilder

Builds constant-radius turns toward specified course bearings.

Constructors

constructor

new TurnToCourseBuilder(): TurnToCourseBuilder

Returns

TurnToCourseBuilder

Methods

build

build(vectors, index, start, radius, direction, fromCourse, toCourse, flags?): number

Adds a turn from a defined start point and initial course to a specific final course to a flight path vector sequence. If the difference between the initial and final course is small enough such that the start and end of the turn are identical, no turn will be added to the vector sequence.

Parameters

NameTypeDefault valueDescription
vectorsCircleVector[]undefinedThe flight path vector sequence to which to add the turn.
indexnumberundefinedThe index in the sequence at which to add the turn.
startReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceundefinedThe start point of the turn.
radiusnumberundefinedThe radius of the turn, in meters.
directionVectorTurnDirectionundefinedThe direction of the turn.
fromCoursenumberundefinedThe initial true course at the start of the turn.
toCoursenumberundefinedThe final true course at the end of the turn.
flagsFlightPathVectorFlagsFlightPathVectorFlags.TurnToCourseThe flags to set on the turn vector. Defaults to the TurnToCourse flag.

Returns

number

The number of vectors added to the sequence.

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:325