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