Interface Geom

Index

Methods

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

public quadtree(): QuadtreeFactory

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

  • points: Point[]
  • 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

  • points: Point[]
  • width: number
  • height: number

Returns

Quadtree

public voronoi(): Voronoi

Returns

Voronoi

public voronoi(vertices: Vertice[]): Polygon[]

compute the Voronoi diagram for the specified points.

Parameters

Returns

Polygon[]