Skip to main content

Class: InterceptGreatCircleToPointBuilder

Builds paths connecting initial great-circle paths to final great-circle paths via a turn starting at the start point followed by an angled intercept path which intercepts the final path before the end point.

Constructors

constructor

new InterceptGreatCircleToPointBuilder(): InterceptGreatCircleToPointBuilder

Returns

InterceptGreatCircleToPointBuilder

Methods

build

build(vectors, index, start, startPath, startTurnRadius, startTurnDirection, interceptAngle, end, endPath, endTurnRadius?, startTurnVectorFlags?, interceptVectorFlags?, endTurnVectorFlags?): number

Builds a sequence of vectors representing a path from a defined start point and initial course which turns and intercepts a final course at a specified angle using a great-circle path. Optionally includes a final turn from the intercept path to the final course.

If an intercept angle greater than the minimum angle is required to intercept the final course before the end point, no vectors will be calculated.

If the initial and final courses are parallel, no vectors will be calculated.

Parameters

NameTypeDefault valueDescription
vectorsCircleVector[]undefinedThe flight path vector sequence to which to add the vectors.
indexnumberundefinedThe index in the sequence at which to add the vectors.
startReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceundefinedThe start point.
startPathGeoCircleundefinedThe great-circle path defining the initial course.
startTurnRadiusnumberundefinedThe radius of the initial turn, in meters.
startTurnDirectionundefined | VectorTurnDirectionundefinedThe direction of the initial turn. If not defined, the direction of the initial turn will be automatically selected.
interceptAnglenumberundefinedThe angle at which to intercept the final path, in degrees. Will be clamped to the range [0, 90].
endReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceundefinedThe end point.
endPathGeoCircleundefinedThe great-circle path defining the final course.
endTurnRadius?numberundefinedThe radius of the final turn, in meters, or undefined if a turn to join the final path should not be calculated.
startTurnVectorFlagsnumber0The flags to set on the initial turn vector. Defaults to none (0).
interceptVectorFlagsnumber0The flags to set on the vector along the intercept path. Defaults to none (0).
endTurnVectorFlagsnumber0The flags to set on the final turn vector. Defaults to none (0). Ignored if a turn to join the final path is not calculated.

Returns

number

The number of vectors added to the sequence.

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:894