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.