Method

NumCosmoMathTriVecset_astro_ra_dec

Declaration [src]

void
ncm_trivec_set_astro_ra_dec (
  NcmTriVec* v,
  gdouble r,
  gdouble ra,
  gdouble dec
)

Description [src]

Sets the astronomical coordinates of a NcmTriVec. The astronomical coordinates are the declination and the right ascension. The declination is the angle between the vector and the z-axis, and the right ascension is the angle between the projection of the vector in the xy-plane and the x-axis. The declination and the right ascension are given in degrees.

Parameters

r

Type: gdouble

The radius.

ra

Type: gdouble

The right ascension (in degrees).

dec

Type: gdouble

The declination (in degrees).