code wiki / _hdl_build / nx_viz_geo.nx

nx_viz_geo.nx

buildroot/runtime/_hdl_build/nx_viz_geo.nx

1233 B25 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind tooltopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_geo.nx -- the GEO-PROJECT layer of the sovereign Nishi viz library (the d3-geo core, bits-up). Two projections, pure integer: equirectangular (plate carree, exact) + orthographic (globe, equatorial view, via nx_viz_trig) with back-hemisphere culling. lon in [-180,180], lat in [-90,90]. Closes geo-project. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_viz_trig.nx nx_syscalls.nx nx_viz_geo.nx nx_viz_geo_gate.nx

imports: nx_viz_trig.nxnx_syscalls.nx

imported by: nx_viz_geo_gate.nx

structs

none

consts

7const K_MAGIC_100000000: i64 = 100000000
8const K_MAGIC_10000: i64 = 10000

functions

11func vg_equirect(lon: i64, lat: i64, W: i64, H: i64, out2: *i64) -> i64
called by 1: main
18func vg_ortho(lon: i64, lat: i64, lon0: i64, R: i64, out2: *i64) -> i64
called by 1: main calls 2: vs_cosvs_sin
25func main() -> i64 { return 0 }