PO_matlab
|
Converts spherical coordinates to Cartesian coordinates. More...
Functions | |
function | mysph2cart (in r, in theta, in phi) |
Converts spherical coordinates to Cartesian coordinates.
This function transforms spherical coordinates (r, theta, phi) into Cartesian coordinates (x, y, z).
r | Radial distance(s) from the origin [m] |
theta | Elevation angle(s) from z-axis [rad] |
phi | Azimuthal angle(s) from x-axis [rad] |
x | X-coordinate(s) |
y | Y-coordinate(s) |
z | Z-coordinate(s) |
function mysph2cart | ( | in | r, |
in | theta, | ||
in | phi ) |