Skip to main content

insert

Function insert 

Source
pub fn insert(points: &mut Vec<[f32; 2]>, p: [f32; 2]) -> Option<usize>
Expand description

Inserts a point in order; its index, or None when it is too close to another point’s input.