PO_matlab
|
Converts cylindrical coordinates to spherical coordinates. More...
Functions | |
function | mycyl2sph (in rho, in phi, in z) |
Converts cylindrical coordinates to spherical coordinates.
This function transforms cylindrical coordinates (rho, phi, z) into spherical coordinates (r, theta, phi). The azimuthal angle phi is preserved. Theta is measured from the positive z-axis.
rho | Radial distance in the xy-plane [m] |
phi | Azimuthal angle [rad] |
z | Height coordinate [m] |
r | Radial distance from origin [m] |
theta | Elevation angle from z-axis [rad] |
phi_ | Azimuthal angle [rad] (same as input phi) |
function mycyl2sph | ( | in | rho, |
in | phi, | ||
in | z ) |