Registry / Library

library · v0.1.1
Tile Parent Id
Map a row-major square tile ID into its parent in an even-width tile level. Reject invalid IDs and odd widths.
Use Tile Parent Id
use vendor::tile_parent_id::tile_parent_id;
Run the example
nest demo tile_parent_id@0.1.1
blyxc native-run tile_parent_id-demo/main.blyx
Example source and expected output
use vendor::tile_parent_id::tile_parent_id;
fn main() {
println!(tile_parent_id(15,4));
}
Expected output
3
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 24ade83401 | 513cf4caea800991eaebdfc23468a20ad5c1a4a27ee2b3266b168e0a97195644 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 0aad46e7357b91fe4365725fa131ff87a0611ebfb8b04f5e967685b233cf0d34 |