Skip to main content

Class: CircleInterceptBuilder

Builds great-circle paths to intercept other geo circles.

Constructors

constructor

new CircleInterceptBuilder(): CircleInterceptBuilder

Returns

CircleInterceptBuilder

Methods

build

build(vectors, index, start, course, circle, flags?): number

Builds a sequence of vectors representing a great-circle path from a defined start point to an intersection with another geo circle.

Parameters

NameTypeDescription
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.
coursenumberThe initial true course bearing.
circleGeoCircleThe circle to intercept.
flags?numberThe flags to set on the vector. Defaults to none (0).

Returns

number

The number of vectors added to the sequence.

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:379

build(vectors, index, start, startPath, circle, flags?): number

Builds a sequence of vectors representing a path from a defined start point to an intersection with another geo circle.

Parameters

NameTypeDescription
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 initial path.
circleGeoCircleThe circle to intercept.
flags?numberThe flags to set on the vector. Defaults to none (0).

Returns

number

The number of vectors added to the sequence.

Throws

Error if start does not lie on startPath.

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:399