diff options
Diffstat (limited to 'src/patch/coords.cc')
-rw-r--r-- | src/patch/coords.cc | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/src/patch/coords.cc b/src/patch/coords.cc index 473e375..0222840 100644 --- a/src/patch/coords.cc +++ b/src/patch/coords.cc @@ -13,7 +13,7 @@ // // usual polar spherical (r,theta,phi) <--> (x,y,z) // ((mu,nu,phi)) <--> usual polar spherical (theta,phi) -// ((mu,nu,phi)) --> direction cosines (alpha,beta,gamma) +// ((mu,nu,phi)) --> direction cosines (xcos,ycos,zcos) // // local_coords::mu_nu_phi::name_of_coords_set // @@ -426,42 +426,33 @@ assert( fuzzy_EQ_ang(phi, ps_phi) ); // // these functions convert ((mu,nu,phi)) to the direction cosines -// (alpha,beta,gamma) +// (xcos,ycos,zcos) // namespace local_coords { -void alpha_beta_gamma_of_mu_nu (fp mu, fp nu , fp& alpha, fp& beta, fp& gamma) +void xcos_ycos_zcos_of_mu_nu (fp mu, fp nu , fp& xcos, fp& ycos, fp& zcos) { -fp x, y, z; -xyz_of_r_mu_nu(1.0,mu,nu, x,y,z); -alpha = x; -beta = y; -gamma = z; +xyz_of_r_mu_nu(1.0,mu,nu, xcos,ycos,zcos); } } namespace local_coords { -void alpha_beta_gamma_of_mu_phi(fp mu, fp phi, fp& alpha, fp& beta, fp& gamma) +void xcos_ycos_zcos_of_mu_phi(fp mu, fp phi, fp& xcos, fp& ycos, fp& zcos) { -fp x, y, z; -xyz_of_r_mu_phi(1.0,mu,phi, x,y,z); -alpha = x; -beta = y; -gamma = z; +xyz_of_r_mu_phi(1.0,mu,phi, xcos,ycos,zcos); +xcos = x; +ycos = y; +zcos = z; } } namespace local_coords { -void alpha_beta_gamma_of_nu_phi(fp nu, fp phi, fp& alpha, fp& beta, fp& gamma) +void xcos_ycos_zcos_of_nu_phi(fp nu, fp phi, fp& xcos, fp& ycos, fp& zcos) { -fp x, y, z; -xyz_of_r_nu_phi(1.0,nu,phi, x,y,z); -alpha = x; -beta = y; -gamma = z; +xyz_of_r_nu_phi(1.0,nu,phi, xcos,ycos,zcos); } } |