Trait pix_engine::shape::Intersects
source · pub trait Intersects<S> {
type Result;
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.