Function

NumCosmoMathutil_position_angle

Declaration [src]

gdouble
ncm_util_position_angle (
  gdouble ra1,
  gdouble dec1,
  gdouble ra2,
  gdouble dec2
)

Description [src]

Computes the on-sky position angle (East of North) between object1 (ra1, dec1) and object2 (ra2, dec2). The input coordinates ((ra1, dec1), (ra2, dec2)) must be given in decimal degrees.

Parameters

ra1

Type: gdouble

Right ascension of object 1.

dec1

Type: gdouble

Declination of object 1.

ra2

Type: gdouble

Right ascension of object 2.

dec2

Type: gdouble

Declination of object 2.

Return value

Type: gdouble

The position angle in radians.