randomPointOnSphere
randomPointOnSphere(random, result, result_offset)
Unit sphere sampling
Kind: global function
See: based on python code suggested here: https://stackoverflow.com/questions/5408276/sampling-uniformly-distributed-random-points-inside-a-spherical-volume
Param | Type |
---|---|
random | function |
result | Array.<number> | Float32Array |
result_offset | number |