pytransform3d.coordinates.cartesian_from_spherical

pytransform3d.coordinates.cartesian_from_spherical(p)[source]

Convert spherical coordinates to Cartesian coordinates.

Parameters
parray-like, shape (…, 3)

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

Returns
qarray, shape (…, 3)

Cartesian coordinates (x, y, z)

Examples using pytransform3d.coordinates.cartesian_from_spherical