Skip to content

onSphere

onSphere(radius?, dimensions?): Point

Defined in: src/geometry.ts:94

A uniform point on the surface of a sphere.

number = 1

number = 3

Point

onSphere(1); // [ 0.267, -0.534, 0.801 ]
onSphere(2, 4); // a point on a 4-dimensional sphere of radius 2