code wiki / _hdl_build / nx_viz_voronoi.nx

nx_viz_voronoi.nx

buildroot/runtime/_hdl_build/nx_viz_voronoi.nx

968 B21 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_voronoi.nx -- the VORONOI layer of the sovereign Nishi viz library (the d3-delaunay nearest-site core, bits-up). The Voronoi diagram IS the nearest-site map: vd_nearest returns the site owning a query point (by SQUARED distance -- no sqrt, exact). Raster a grid through it = the Voronoi cells; it is also d3's delaunay.find. Closes geom-voronoi (raster/nearest-site; vector Delaunay triangulation is the noted refinement). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_viz_voronoi.nx nx_viz_voronoi_gate.nx

imports: nx_syscalls.nx

imported by: nx_viz_voronoi_gate.nx

structs

none

consts

none

functions

7func vd_nearest(sx: *i64, sy: *i64, n: i64, px: i64, py: i64) -> i64
called by 1: main
21func main() -> i64 { return 0 }