Skip to main content

Class: TurnToJoinGreatCircleAtPointVectorBuilder

Defined in: src/sdk/flightplan/flightpath/vectorbuilders/TurnToJoinGreatCircleAtPointVectorBuilder.ts:14

Builds vectors representing paths connecting initial great circle paths to final great circle paths via a turn starting at the start point and a turn ending at the end point, connected by a great-circle path.

Constructors

Constructor

new TurnToJoinGreatCircleAtPointVectorBuilder(): TurnToJoinGreatCircleAtPointVectorBuilder

Returns

TurnToJoinGreatCircleAtPointVectorBuilder

Methods

build()

build(vectors, index, start, startPath, startTurnRadius, startTurnDirection, end, endPath, endTurnRadius, endTurnDirection, startTurnVectorFlags, endTurnVectorFlags, connectVectorFlags, heading, isHeadingTrue): number

Defined in: src/sdk/flightplan/flightpath/vectorbuilders/TurnToJoinGreatCircleAtPointVectorBuilder.ts:44

Builds a sequence of vectors representing a path from a defined start point and initial course which turns and connects with another turn via a great-circle path to terminate at a defined end point and final course.

Parameters

ParameterTypeDefault valueDescription
vectorsFlightPathVector[]undefinedThe flight path vector array to which to add the vectors.
indexnumberundefinedThe index in the array at which to add the vectors.
startReadonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">> | LatLonInterfaceundefinedThe start point.
startPathReadonlyGeoCircleundefinedA GeoCircle that defines the initial course. Must be a great circle.
startTurnRadiusnumberundefinedThe radius of the initial turn, in meters.
startTurnDirectionVectorTurnDirectionundefinedThe direction of the initial turn.
endReadonly<Omit<Float64Array<ArrayBufferLike>, "set" | "sort" | "copyWithin">> | LatLonInterfaceundefinedThe end point.
endPathReadonlyGeoCircleundefinedA GeoCircle that defines the final course. Must be a great circle.
endTurnRadiusnumberundefinedThe radius of the final turn, in meters.
endTurnDirectionVectorTurnDirectionundefinedThe direction of the final turn.
startTurnVectorFlagsnumber0The flags to set on the initial turn vector. Defaults to none (0).
endTurnVectorFlagsnumber0The flags to set on the final turn vector. Defaults to none (0).
connectVectorFlagsnumber0The flags to set on the vector along the great-circle path connecting the turns. Defaults to none (0).
headingnull | numbernullThe heading-to-fly to assign to all built vectors, in degrees, or null if no heading is to be assigned. Defaults to null.
isHeadingTruebooleanfalseWhether the heading-to-fly assigned to built vectors is relative to true north instead of magnetic north. Defaults to false.

Returns

number

The number of vectors that were built and added to the array.

Throws

Error if either the start or end path is not a great circle.