If the two objects have celestial spherical-polar coordinates (in
practice Right Ascension and Declination)
and
then the criterion is that
should be less
than or equal to the great circle distance between the two coordinates:
Equation
is the natural form for the great circle distance,
simply derived by applying spherical trigonometry to the two
coordinates. In practice it has the disadvantage that because of
numerical errors it is inaccurate when the great circle distance is a
small angle. There are algebraically equivalent formulations which
retain numerical accuracy for small angles. In catpair the great
circle distance is calculated using the appropriate SLA routine11, which uses such a formulation in order to ensure accuracy for
small angles.
CURSA Catalogue and Table Manipulation Applications