pub trait Intersect<T: ?Sized> { type Output; // Required method fn intersect(&self, other: &T) -> Option<Self::Output>; }
Trait for calculating the intersection with another geometric object.
The type of the output shape representing the intersection.
Calculates the intersection of this shape with other.
other
If no part of this shape lies within other, returns None.
None