Converts a vector field from Cartesian to spherical coordinates.
This function transforms the vector components (Ax, Ay, Az) in Cartesian coordinates into their corresponding spherical components (Ar, Atheta, Aphi) based on the provided angular coordinates.
- Parameters
-
Ax | X-component of the vector field |
Ay | Y-component of the vector field |
Az | Z-component of the vector field |
theta | Elevation angle(s) [rad] |
phi | Azimuth angle(s) [rad] |
- Return values
-
Ar | Radial component of the vector field |
Atheta | Elevation (theta) component of the vector field |
Aphi | Azimuthal (phi) component of the vector field |