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
Name | Type | Default value | Description |
---|---|---|---|
vectors | CircleVector [] | undefined | The flight path vector sequence to which to add the vectors. |
index | number | undefined | The index in the sequence at which to add the vectors. |
start | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> | LatLonInterface | undefined | The start point. |
startPath | GeoCircle | undefined | The great-circle path defining the initial course. |
startTurnRadius | number | undefined | The radius of the initial turn, in meters. |
startTurnDirection | undefined | VectorTurnDirection | undefined | The direction of the initial turn. If not defined, the direction of the initial turn will be automatically selected. |
interceptAngle | number | undefined | The angle at which to intercept the final path, in degrees. Will be clamped to the range [0, 90] . |
end | Readonly <Omit <Float64Array , "set" | "sort" | "copyWithin" >> | LatLonInterface | undefined | The end point. |
endPath | GeoCircle | undefined | The great-circle path defining the final course. |
endTurnRadius? | number | undefined | The radius of the final turn, in meters, or undefined if a turn to join the final path should not be calculated. |
startTurnVectorFlags | number | 0 | The flags to set on the initial turn vector. Defaults to none (0). |
interceptVectorFlags | number | 0 | The flags to set on the vector along the intercept path. Defaults to none (0). |
endTurnVectorFlags | number | 0 | The 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