| 829 | // Transform spherical to rectangular coordinates in x, y, z. |
| 830 | |
| 831 | void SphToRec(real r, real azi, real alt, real *rx, real *ry, real *rz) |
| 832 | { |
| 833 | real rT; |
| 834 | |
| 835 | *rz = r *RSinD(alt); |
| 836 | rT = r *RCosD(alt); |
| 837 | *rx = rT*RCosD(azi); |
| 838 | *ry = rT*RSinD(azi); |
| 839 | } |
| 840 | |
| 841 | |
| 842 | // Convert 3D rectangular to spherical coordinates. |
no outgoing calls
no test coverage detected