Distances between celestial bodies