API Reference / angularSeparation3d · function

Function: angularSeparation3d()

function angularSeparation3d(
   lonA, 
   latA, 
   lonB, 
   latB): number;

Defined in: spherical.ts:27

True great-circle angle (degrees) between two bodies from their ecliptic longitude and latitude. With both latitudes zero this is the unsigned longitude difference; latitude pulls the two apart in three dimensions.

Parameters

lonA

number

latA

number

lonB

number

latB

number

Returns

number