Constructors
constructor
- new Voronoi(params?, x?, y?): Voronoi
-
Parameters
-
Optional
params: number[][] | Delaunator
-
Optional
x: ((p) => number) = defaultGetX
-
- (p): number
-
Returns number
-
Optional
y: ((p) => number) = defaultGetY
-
- (p): number
-
Returns number
Properties
delaunay
points
points: number[][]
Methods
cutVoronoiByMBR
- cutVoronoiByMBR(MBR): Map<any, any>
-
Parameters
-
MBR: [number, number, number, number]
Returns Map<any, any>
getVoronoi
- getVoronoi(): Map<number, number[][]>
-
Returns Map<number, number[][]>
isInsideMBR
- isInsideMBR(points, MBR): boolean
-
Parameters
-
points: number[][]
-
MBR: [number, number, number, number]
Returns boolean
robustVoronoi
- robustVoronoi(MBR): Map<any, any>
-
Parameters
-
MBR: [number, number, number, number]
Returns Map<any, any>