code wiki / _hdl_build / nx_viz_geo.nx
nx_viz_geo.nx
buildroot/runtime/_hdl_build/nx_viz_geo.nx
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
imports: nx_viz_trig.nxnx_syscalls.nx
imported by: nx_viz_geo_gate.nx
structs
| none |
consts
| 7 | const K_MAGIC_100000000: i64 = 100000000 |
| 8 | const K_MAGIC_10000: i64 = 10000 |
functions
| 11 | func vg_equirect(lon: i64, lat: i64, W: i64, H: i64, out2: *i64) -> i64 called by 1: main |
| 18 | func vg_ortho(lon: i64, lat: i64, lon0: i64, R: i64, out2: *i64) -> i64 |
| 25 | func main() -> i64 { return 0 } |