Function

NumCosmoMathTriVecnew_astro_coord

Declaration [src]

NcmTriVec*
ncm_trivec_new_astro_coord (
  gdouble r,
  gdouble delta,
  gdouble alpha
)

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 radians.

Parameters

r

Type: gdouble

The radius.

delta

Type: gdouble

The declination.

alpha

Type: gdouble

The right ascension.

Return value

Type: NcmTriVec

The new NcmTriVec.

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