Function

NumCosmoMathTriVecnew_sphere

Declaration [src]

NcmTriVec*
ncm_trivec_new_sphere (
  gdouble r,
  gdouble theta,
  gdouble phi
)

Description [src]

Creates a new NcmTriVec with the given spherical coordinates. 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.

Parameters

r

Type: gdouble

The radius.

theta

Type: gdouble

The polar angle.

phi

Type: gdouble

The azimuthal angle.

Return value

Type: NcmTriVec

The new NcmTriVec.

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