Skip to main content

clear_of_anchors

Function clear_of_anchors 

Source
fn clear_of_anchors(geometry: &RouteGeometry, pos: Pos2) -> bool
Expand description

Whether pos sits at least one cell from both anchors — the invariant every waypoint added during a drag must satisfy (a closer one would overlap a pin).