pub trait Intersects<S> {
type Result;
// Required method
fn intersects(&self, shape: S) -> Option<Self::Result>;
}
Expand description
Trait for shape intersection operations.
Required Associated Types§
Required Methods§
Sourcefn intersects(&self, shape: S) -> Option<Self::Result>
fn intersects(&self, shape: S) -> Option<Self::Result>
Returns an intersection result based on the shape or None
if there is no intersection.