Class: TurnToCourseBuilder
Builds constant-radius turns toward specified course bearings.
Constructors
constructor
• new TurnToCourseBuilder(): TurnToCourseBuilder
Returns
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
Name | Type | Default value | Description |
---|---|---|---|
vectors | CircleVector [] | undefined | The flight path vector sequence to which to add the turn. |
index | number | undefined | The index in the sequence at which to add the turn. |
start | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> | LatLonInterface | undefined | The start point of the turn. |
radius | number | undefined | The radius of the turn, in meters. |
direction | VectorTurnDirection | undefined | The direction of the turn. |
fromCourse | number | undefined | The initial true course at the start of the turn. |
toCourse | number | undefined | The final true course at the end of the turn. |
flags | FlightPathVectorFlags | FlightPathVectorFlags.TurnToCourse | The 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