surfa.mesh.sphere.spherical_to_cartesian
surfa.mesh.sphere.spherical_to_cartesian#
- surfa.mesh.sphere.spherical_to_cartesian(points)#
Convert a set of spherical coordinates (phi, theta) to cartesian coordinates around the origin.
- Parameters
points ((n, 2) float) – Array of (phi, theta) points to convert.
- Returns
cartesian
- Return type
(n, 3) float