pos_parent¶
-
toasty.pyramid.
pos_parent
(pos)[source]¶ Return a tile position’s parent.
- Parameters
- posPos
A tile position.
- Returns
- parentPos
The tile position that is the parent of pos.
- x_indexinteger, 0 or 1
The horizontal index of the child inside its parent.
- y_indexinteger, 0 or 1
The vertical index of the child inside its parent.