Skip to main content

Class: DirectToPointBuilder

Defined in: src/sdk/flightplan/FlightPathVectorBuilder.ts:1757

Builds paths directly connecting a defined initial point and course and a defined end point.

Constructors

Constructor

new DirectToPointBuilder(): DirectToPointBuilder

Returns

DirectToPointBuilder

Methods

build()

Call Signature

build(vectors, index, start, startCourse, end, desiredTurnRadius, desiredTurnDirection?, flags?, includeTurnToCourseFlag?, includeDirectFlag?): number

Defined in: src/sdk/flightplan/FlightPathVectorBuilder.ts:1781

Builds a sequence of vectors representing a path which consists of an optional turn from an initial point and course toward an end point followed by an optional great-circle path terminating at the end point.

Parameters
ParameterTypeDescription
vectorsCircleVector[]The flight path vector sequence to which to add the vectors.
indexnumberThe index in the sequence at which to add the vectors.
startReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe start point.
startCoursenumberThe initial course.
endReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe end point.
desiredTurnRadiusnumberThe desired turn radius, in meters.
desiredTurnDirection?VectorTurnDirectionThe desired turn direction. If undefined, a turn direction will be chosen such that the initial turn is always toward the end point.
flags?numberThe flags to set on the vectors. Defaults to none (0).
includeTurnToCourseFlag?booleanWhether to include the TurnToCourse flag on the turn vectors. Defaults to true.
includeDirectFlag?booleanWhether to include the Direct flag on the vectors. Defaults to true.
Returns

number

The number of vectors added to the sequence.

Call Signature

build(vectors, index, start, startPath, end, desiredTurnRadius, desiredTurnDirection?, flags?, includeTurnToCourseFlag?, includeDirectFlag?): number

Defined in: src/sdk/flightplan/FlightPathVectorBuilder.ts:1809

Builds a sequence of vectors representing a path which consists of an optional turn from an initial point and course toward an end point followed by an optional great-circle path terminating at the end point.

Parameters
ParameterTypeDescription
vectorsCircleVector[]The flight path vector sequence to which to add the vectors.
indexnumberThe index in the sequence at which to add the vectors.
startReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe start point.
startPathGeoCircleThe great-circle path defining the initial course.
endReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe end point.
desiredTurnRadiusnumberThe desired turn radius, in meters.
desiredTurnDirection?VectorTurnDirectionThe desired turn direction. If undefined, a turn direction will be chosen such that the initial turn is always toward the end point.
flags?numberThe flags to set on the vectors. Defaults to none (0).
includeTurnToCourseFlag?booleanWhether to include the TurnToCourse flag on the turn vectors. Defaults to true.
includeDirectFlag?booleanWhether to include the Direct flag on the vectors. Defaults to true.
Returns

number

The number of vectors added to the sequence.