Methods
public delaunay(vertices?: Vertice[]): Polygon[]
compute the Delaunay triangulation for the specified points.
Parameters
Returns
Polygon[]
public hull(): Hull
creates a new hull layout with the default settings.
Returns
Hull
public hull(vertices: Vertice[]): Vertice[]
Parameters
Returns
Vertice[]
public polygon(vertices: Vertice[]): Polygon
Returns the input array of vertices with additional methods attached
Parameters
Returns
Polygon
constructs a quadtree for an array of points.
Returns
QuadtreeFactory
public quadtree(points: Point[], x1: number, y1: number, x2: number, y2: number): Quadtree
Constructs a new quadtree for the specified array of points.
Parameters
-
-
x1: number
-
y1: number
-
x2: number
-
y2: number
Returns
Quadtree
public quadtree(points: Point[], width: number, height: number): Quadtree
Constructs a new quadtree for the specified array of points.
Parameters
-
-
width: number
-
height: number
Returns
Quadtree