Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse files24ade83401513cf4caea800991eaebdfc23468a20ad5c1a4a27ee2b3266b168e0a97195644
0.1.0Download ZIP · Browse files6349f237840aad46e7357b91fe4365725fa131ff87a0611ebfb8b04f5e967685b233cf0d34