Skip to main content

HasMinDistance

Trait HasMinDistance 

Source
pub trait HasMinDistance<Q> {
    // Required method
    fn min_distance(&self, query: &Q) -> f64;
}
Expand description

Trait for types that can compute the minimum distance to a given query.

Required Methods§

Source

fn min_distance(&self, query: &Q) -> f64

Computes the minimum distance from the bounding volume to the given query.

Implementors§