pub fn voronoi_diagram(
sites: &[[f64; 2]],
lo: [f64; 2],
hi: [f64; 2],
) -> Option<VoronoiDiagram>Expand description
The Voronoi diagram of sites within the box [lo, hi]. Each cell is the box clipped by the
perpendicular bisectors to the site’s Delaunay neighbours, which are exactly the sites whose
cells it shares an edge with. Returns None when the sites cannot be triangulated (fewer than
three distinct points, or all collinear).