alloy::geometry

Trait Intersects

source
pub trait Intersects<Rhs: ?Sized = Self> {
    // Required method
    fn intersects(&self, other: &Rhs) -> bool;
}
Expand description

A trait for objects that can be tested for intersection.

Required Methods§

source

fn intersects(&self, other: &Rhs) -> bool

Determines if this object intersects with another object.

  • other - The other object to check for intersection against.

Implementors§