pub trait FindDist<T> {
    // Required methods
    fn approx_in_range(self, other: T, range: f32) -> bool;
    fn min_distance(self, other: T) -> f32;
}Required Methods§
Sourcefn approx_in_range(self, other: T, range: f32) -> bool
 
fn approx_in_range(self, other: T, range: f32) -> bool
Compute roughly whether the other shape is out of range Meant to be a cheap method for initial filtering Must return true if the shape could be within the supplied distance but is allowed to return true if the shape is actually just out of range
Sourcefn min_distance(self, other: T) -> f32
 
fn min_distance(self, other: T) -> f32
Find the smallest distance between the two shapes