FACT++  1.0
void eraC2s ( double  p[3],
double *  theta,
double *  phi 
)

Definition at line 3 of file c2s.c.

Referenced by eraAtciq(), eraAtciqn(), eraAtciqz(), eraAticq(), eraAticqn(), eraAtioq(), eraAtoiq(), eraFk5hz(), eraG2icrs(), eraIcrs2g(), eraP2s(), palAddet(), palAmpqk(), palDcc2s(), palEcleq(), palEqecl(), palEqgal(), palFk45z(), palGaleq(), palGalsup(), palGe50(), palMapqk(), palMapqkz(), palPlantu(), palPreces(), palRdplan(), palSubet(), palSupgal(), and t_c2s().

29 {
30  double x, y, z, d2;
31 
32  x = p[0];
33  y = p[1];
34  z = p[2];
35  d2 = x*x + y*y;
36 
37  *theta = (d2 == 0.0) ? 0.0 : atan2(y, x);
38  *phi = (z == 0.0) ? 0.0 : atan2(z, sqrt(d2));
39 
40  return;
41 
42 }

+ Here is the caller graph for this function: