pub trait PointLocator {
// Required method
fn locate_one(&self, point: &[f64; 2]) -> Option<usize>;
// Provided methods
fn locate_many(&self, points: &[[f64; 2]]) -> Vec<Option<usize>> { ... }
fn par_locate_many(&self, points: &[[f64; 2]]) -> Vec<Option<usize>>
where Self: Sync { ... }
}
Expand description
A trait to locate one or several query points within a mesh.