is_subtile

toasty.pyramid.is_subtile(deeper_pos, shallower_pos)[source]

Determine if one tile is a child of another.

Parameters:
deeper_posPos

A tile position.

shallower_posPos

A tile position that is shallower than deeper_pos.

Returns:
True if deeper_pos represents a tile that is a child of shallower_pos.