warp.sample_unit_sphere_surface#
- warp.sample_unit_sphere_surface(state: uint32) vec3f#
Kernel
Python
Uniformly sample a point on the surface of the unit sphere (radius 1).
Returns a
vec3of unit length. In a kernel, advancesstatein place; called from the Python scope, it does not modifystate, so repeated calls with the samestatereturn the same point (seerand_init()).