sphere_to_cart#
- pycraf.geometry.sphere_to_cart(r, phi, theta, broadcast_arrays=True)[source]#
Spherical coordinates from Cartesian representation.
- Parameters:
- Returns:
- x, y, z
Quantity Cartesian position [m]
- x, y, z
Notes
Unlike with the mathematical definition,
thetais not the angle to the (positive)zaxis, but the elevation above thex-yplane.