Skip to main content

Class: GreatCircleBuilder

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

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

Constructors​

Constructor​

new GreatCircleBuilder(): GreatCircleBuilder

Returns​

GreatCircleBuilder

Methods​

build()​

Call Signature​

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

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

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​
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.
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.

Call Signature​

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

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

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

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.
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

Call Signature​

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

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

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​
ParameterTypeDescription
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