pytransform3d.coordinates.spherical_from_cylindrical#

pytransform3d.coordinates.spherical_from_cylindrical(p)[source]#

Convert cylindrical coordinates to spherical coordinates.

Parameters:
parray-like, shape (…, 3)

Cylindrical coordinates: axial / radial distance (rho), azimuth (phi), and axial coordinate / height (z)

Returns:
qarray, shape (…, 3)

Spherical coordinates: radial distance (rho), inclination / elevation (theta), and azimuth (phi)