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