How To

Mirror Engine API / Kernel
Class: Kernel
Namespace
Sampling kernels.
Methods
concentric()
static concentric(numRings: number, numPoints: number): number[]
Generate a set of points distributed in a series of concentric rings around the origin. The spacing between points is determined by the number of points in the first ring, and subsequent rings maintain this spacing by adjusting their number of points accordingly.
Parameters
numRings
number
The number of concentric rings to generate.
numPoints
number
The number of points in the first ring.
Returns
number
[]
- An array where each point is represented by two numbers.