pub trait Intersect<T: ?Sized> {
    type Output;

    // Required method
    fn intersect(&self, other: &T) -> Option<Self::Output>;
}
Expand description

Trait for calculating the intersection with another geometric object.

Required Associated Types§

source

type Output

The type of the output shape representing the intersection.

Required Methods§

source

fn intersect(&self, other: &T) -> Option<Self::Output>

Calculates the intersection of this shape with other.

If no part of this shape lies within other, returns None.

Implementors§