Skip to main content

Intersect

Trait Intersect 

Source
pub trait Intersect<T> {
    // Required method
    fn intersect(&self, other: &T) -> bool;
}
Expand description

Trait for boolean intersection tests.

Required Methods§

Source

fn intersect(&self, other: &T) -> bool

Returns true when two objects intersect.

Unless an implementation documents otherwise, touching at the boundary counts as an intersection.

Implementors§