Skip to content

@ue-too/border / index / initialBearingOfGreatCircle

函式: initialBearingOfGreatCircle()

initialBearingOfGreatCircle(startCoord, endCoord): number

定義於: greateCircle.ts:112

Calculate the initial bearing between two points on the Earth's surface. (traveling along the great circle would result in different bearing from the start point to the end point)

參數

startCoord

GeoCoord

The starting point in GeoCoord format.

endCoord

GeoCoord

The ending point in GeoCoord format.

回傳

number

The bearing in degrees.