Function

NumCosmoMathTriVecnew_astro_ra_dec

Declaration [src]

NcmTriVec*
ncm_trivec_new_astro_ra_dec (
  gdouble r,
  gdouble ra,
  gdouble dec
)

Description [src]

Creates a new NcmTriVec with the given astronomical coordinates. The astronomical coordinates are the declination and the right ascension. The declination is the angle between the vector and the celestial equator, and the right ascension is the angle between the projection of the vector in the celestial equator and the vernal equinox. The angles are in degrees.

Parameters

r

Type: gdouble

The radius.

ra

Type: gdouble

The right ascension.

dec

Type: gdouble

The declination.

Return value

Type: NcmTriVec

The new NcmTriVec.

The caller of the function takes ownership of the data, and is responsible for freeing it.