onSphere
onSphere(
radius?,dimensions?):Point
Defined in: src/geometry.ts:94
A uniform point on the surface of a sphere.
Parameters
Section titled “Parameters”radius?
Section titled “radius?”number = 1
dimensions?
Section titled “dimensions?”number = 3
Returns
Section titled “Returns”Example
Section titled “Example”onSphere(1); // [ 0.267, -0.534, 0.801 ]onSphere(2, 4); // a point on a 4-dimensional sphere of radius 2