Computes the rigorous position angle of source 2 (with given RA, Dec)
using source 1 (with given RA, Dec) as the center based on the
"four-parts formula" from spherical trigonometry (Smart 1977, p.12) If (ra1,dc1) and (ra2,dc2) are vectors, then angle is a
vector giving the position angle between each element of (ra2,dc2)
and (ra1,dc1). Similarly, if (ra1,dc1) are vectors and
(ra2,dc2) are scalars, then angle is a vector giving the position
angle of each element of (ra1,dc1) and (ra2,dc2). If both
(ra1,dc1) and (ra2,dc2) are vectors, then angle
is a vector giving the position angle between each element of (ra1,dc1)
and the corresponding element of (ra2,dc2). If then vectors are not the
same length, then excess elements of the longer one will be ignored.
Note that posang is not commutative: the position angle between
A and B is theta, then the position angle between B and A is 180+theta