code wiki / _hdl_build / nx_viz_pack.nx

nx_viz_pack.nx

buildroot/runtime/_hdl_build/nx_viz_pack.nx

1642 B39 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

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

nx_viz_trig.nx nx_syscalls.nx nx_viz_pack.nx nx_viz_pack_gate.nx

imports: nx_viz_trig.nxnx_syscalls.nx

imported by: nx_viz_pack_gate.nx

structs

none

consts

7const K_MAGIC_10000: i64 = 10000
8const K_MAGIC_200000: i64 = 200000

functions

10func vp_pack(n: i64, r: *i64, xs: *i64, ys: *i64) -> i64
called by 1: main calls 3: vs_cosvs_sinvs_isqrt
39func main() -> i64 { return 0 }