4 double *theta,
double *phi,
double *r,
5 double *td,
double *pd,
double *rd)
41 double x, y, z, xd, yd, zd, rxy2, rxy, r2, rtrue, rw, xyp;
77 *td = (x*yd - y*xd) / rxy2;
78 *pd = (zd*rxy2 - z*xyp) / (r2*rxy);
81 *phi = (z != 0.0) ? atan2(z, rxy) : 0.0;
86 *rd = (rw != 0.0) ? (xyp + z*zd) / rw : 0.0;
void eraPv2s(double pv[2][3], double *theta, double *phi, double *r, double *td, double *pd, double *rd)