Method

NumCosmoMathTriVecset_astro_coord

Declaration [src]

void
ncm_trivec_set_astro_coord (
  NcmTriVec* v,
  gdouble r,
  gdouble delta,
  gdouble alpha
)

Description [src]

Sets the astronomical coordinates of a NcmTriVec. The astronomical coordinates are the declination and the right ascension. The vector is defined as: $$\vec{v} = (\cos(\delta) \cos(\alpha), \cos(\delta) \sin(\alpha), \sin(\delta)).$$.

Parameters

r

Type: gdouble

The radius.

delta

Type: gdouble

The declination.

alpha

Type: gdouble

The right ascension.