ezu-core
Core types shared across the ezu workspace.
Contents
| Module | What it provides |
|---|---|
coord |
[TileId] (z/x/y) and [WorldPos] in the [0,1]² Web-Mercator unit square; tile_to_world() |
seed |
world_seed(WorldPos, salt) -> u64 (xxh3) — the foundation of seamless tile boundaries |
World coordinates here are normalized to the unit square so that zoom-aware jitter and seed derivation stay zoom-stable: the same physical location always produces the same seed regardless of which zoom level a particular tile happens to live at.
Example
use ;
let tile = new;
let pos = tile_to_world;
let seed = world_seed;
See the main README for the full project overview.
License
MIT or Apache-2.0, at your option.