warp.sample_unit_ring#
- warp.sample_unit_ring(state: uint32) vec2f#
Kernel
Python
Uniformly sample a point on the unit circle (radius 1) in the xy-plane.
Returns a
vec2of 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()).