Method
NumCosmoMathTriVecset_spherical_coord
Declaration [src]
void
ncm_trivec_set_spherical_coord (
NcmTriVec* v,
gdouble r,
gdouble theta,
gdouble phi
)
Description [src]
Sets the spherical coordinates of a NcmTriVec. The spherical coordinates are the radius,
the polar angle and the azimuthal angle. The polar angle is the angle between the vector
and the z-axis, and the azimuthal angle is the angle between the projection of the vector
in the xy-plane and the x-axis.
The vector is defined as: $$\vec{v} = (r \sin(\theta) \cos(\phi), r \sin(\theta) \sin(\phi), r \cos(\theta)).$$.