Skip to main content

settle

Function settle 

pub fn settle(
    moving: Placement,
    others: &[Placement],
    threshold: i32,
) -> Placement
Expand description

Where a dropped display settles: snapped to nearby lines, clear of every other display, and touching at least one of them. Always a valid place (is_valid): when the shortest way out of one display runs into another, it rests at the nearest place flush against a side of one.