Skip to content

gridify_gridfit

function gridify_gridfit(D): Point[];

Defined in: gridfit.ts:186

Removes overlaps by hierarchically partitioning the data space, shifting each dividing line by the smallest amount that leaves every subregion enough grid cells for its points.

ParameterTypeDescription
Dreadonly Point[]Input points, in grid-cell units.

Point[]

One grid cell per input point, in input order.