Calculate the shortest angular distance between two points on the ecliptic
Returns the smallest angle between two positions, taking into account the circular nature of the ecliptic (0° = 360°).
First angle in degrees
Second angle in degrees
Angular distance in degrees (0-180)
angularDistance(10, 50) // 40angularDistance(350, 10) // 20 (not 340 - shortest distance)angularDistance(0, 180) // 180angularDistance(270, 90) // 180 Copy
angularDistance(10, 50) // 40angularDistance(350, 10) // 20 (not 340 - shortest distance)angularDistance(0, 180) // 180angularDistance(270, 90) // 180
Calculate the shortest angular distance between two points on the ecliptic
Returns the smallest angle between two positions, taking into account the circular nature of the ecliptic (0° = 360°).