pub fn snap_rect(moving: Rect, targets: &[Rect], tolerance: f64) -> Snap
Snap a box being moved onto targets’ edges and centres, each axis on its own, within tolerance units.
targets
tolerance