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,
theta
is not the angle to the (positive)z
axis, but the elevation above thex
-y
plane.