Skip to main content

transform_is_valid_for

Function transform_is_valid_for 

Source
pub fn transform_is_valid_for(t: u8, w: u32, h: u32) -> bool
Expand description

Which transforms keep the tile shape (a reference must reproduce tw x th): all 8 on square patches, only the identity/hflip/vflip/rot180 subgroup on non-square partial tiles.