Skip to content

inCircle

inCircle(radius?): Point

Defined in: src/geometry.ts:77

A uniform point inside a disc.

The square root matters: without it, points bunch up at the centre, because the area at radius r grows with r.

number = 1

Point

inCircle(50); // [ 12.4, -31.8 ] evenly spread over the disc