Skip to main content

Class: GreatCircleBuilder

Builds great-circle paths between defined start and end points.

Constructors

constructor

new GreatCircleBuilder(): GreatCircleBuilder

Returns

GreatCircleBuilder

Methods

build

build(vectors, index, start, end, initialCourse?, flags?): number

Builds a sequence of vectors representing a great-circle path between two points. The great circle path chosen is the shortest great-circle path between the two points.

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.
endReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe end point.
initialCourse?numberThe initial true course bearing. Used to define a unique great-circle path when start and end are antipodal.
flags?numberThe flags to set on the vector. Defaults to none (0).

Returns

number

Throws

Error if start and end are antipodal and initialCourse is undefined.

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:169

build(vectors, index, start, path, end, flags?): number

Builds a sequence of vectors representing a great-circle path between two points.

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.
pathGeoCircleThe great-circle path.
endReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe end point.
flags?numberThe flags to set on the vector. Defaults to none (0).

Returns

number

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:186

build(vectors, index, start, path, distance, flags?): number

Builds a sequence of vectors representing a great-circle path between two points. The end point is chosen such that it is offset from the start point by a specified distance.

Parameters

NameTypeDescription
vectorsCircleVector[]
indexnumberThe index in the sequence at which to add the vectors.
startReadonly<Omit<Float64Array, "set" | "sort" | "copyWithin">> | LatLonInterfaceThe start point.
pathGeoCircleThe great-circle path.
distancenumberThe distance along the path between the start and end points, in meters.
flags?numberThe flags to set on the vector. Defaults to none (0).

Returns

number

Defined in

src/sdk/flightplan/FlightPathVectorBuilder.ts:204