Skip to main content

snap_point

Function snap_point 

pub fn snap_point(point: Point, targets: &[Rect], tolerance: f64) -> Snap
Expand description

Snap one point (a corner being dragged, a new shape’s corner) onto targets’ edges and centres.