Trait PointLocator

Source
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.

Required Methods§

Source

fn locate_one(&self, point: &[f64; 2]) -> Option<usize>

Locates one query point within a mesh.

Returns None if the query point does not lie in any cell of the mesh.

Provided Methods§

Source

fn locate_many(&self, points: &[[f64; 2]]) -> Vec<Option<usize>>

Locates several query points within a mesh.

Source

fn par_locate_many(&self, points: &[[f64; 2]]) -> Vec<Option<usize>>
where Self: Sync,

Locates several query points within a mesh in parallel.

Implementors§