API Reference / angularSeparation3d · function
Function: angularSeparation3d()
function angularSeparation3d(
lonA,
latA,
lonB,
latB): number;
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
| Parameter | Type |
|---|---|
lonA | number |
latA | number |
lonB | number |
latB | number |
Returns
number