popsynth.utils.spherical_geometry module

popsynth.utils.spherical_geometry.sample_theta_phi(size: int)[source]

Sample size samples uniformly on the surface of the unit sphere.

popsynth.utils.spherical_geometry.xyz(r, theta, phi)[source]

Convert spherical coordinates to Cartesian.