surfa.mesh.sphere.cartesian_to_spherical#

surfa.mesh.sphere.cartesian_to_spherical(points)#

Convert a set of cartesian points to spherical coordinates (phi, theta) around the origin.

Parameters

points ((n, 3) float) – Array of (x, y, z) spherical points to convert.

Returns

spherical

Return type

(n, 2) float