Skip to main content

block_rect

Function block_rect 

Source
pub fn block_rect(start: Pos2, end: Pos2) -> GridRect
Expand description

grid_rect on a block’s height ladder: heights are one of 4, 7, 10, … cells (a pin slot’s clearance plus one pitch per slot), and the top edge is kept, so the block settles onto the nearest valid height rather than the one the drag stopped at.