FACT++  1.0
void eraS2pv ( double  theta,
double  phi,
double  r,
double  td,
double  pd,
double  rd,
double  pv[2][3] 
)

Definition at line 3 of file s2pv.c.

Referenced by eraStarpv(), and t_s2pv().

27 {
28  double st, ct, sp, cp, rcp, x, y, rpd, w;
29 
30  st = sin(theta);
31  ct = cos(theta);
32  sp = sin(phi);
33  cp = cos(phi);
34  rcp = r * cp;
35  x = rcp * ct;
36  y = rcp * st;
37  rpd = r * pd;
38  w = rpd*sp - cp*rd;
39 
40  pv[0][0] = x;
41  pv[0][1] = y;
42  pv[0][2] = r * sp;
43  pv[1][0] = -y*td - w*ct;
44  pv[1][1] = x*td - w*st;
45  pv[1][2] = rpd*cp + sp*rd;
46 
47  return;
48 
49 }

+ Here is the caller graph for this function: