code wiki / _hdl_build / nx_viz_pack.nx
nx_viz_pack.nx
buildroot/runtime/_hdl_build/nx_viz_pack.nx
about
nx_viz_pack.nx -- the CIRCLE-PACK layer of the sovereign Nishi viz library (the d3-hierarchy pack core, bits-up).
Greedy spiral placement: largest circle at centre, each subsequent circle spirals outward to the first
non-overlapping spot (checked via vs_isqrt distance). Deterministic, non-overlapping BY CONSTRUCTION. Radii are
caller-supplied (r = isqrt(value)*k for area-proportional bubbles). Closes layout-pack. license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_viz_trig.nxnx_syscalls.nx
imported by: nx_viz_pack_gate.nx
structs
| none |
consts
| 7 | const K_MAGIC_10000: i64 = 10000 |
| 8 | const K_MAGIC_200000: i64 = 200000 |
functions
| 10 | func vp_pack(n: i64, r: *i64, xs: *i64, ys: *i64) -> i64 |
| 39 | func main() -> i64 { return 0 } |