Skip to content

Function: delaunay()

ts
function delaunay(x, y): Triangulation;

Defined in: geo/delaunay.ts:82

Triangulate a point set. Collinear or fewer-than-three inputs give an empty triangulation rather than throwing — there is simply no triangle to draw.

Parameters

ParameterType
xArrayLike<number>
yArrayLike<number>

Returns

Triangulation

MIT licensed. WebGL2 required.