Trait myelin_geometry::Intersects
source · pub trait Intersects<Other: ?Sized = Self> {
// Required method
fn intersects(&self, other: &Other) -> bool;
}
Expand description
Tests wether wether this shape touches, contains or is contained in another shape
┼─────────────────────────────────────── x
│
│ ┌─────────────┐
│ │ │
│ │ ┌──│───────┐
│ └─────────────┘ │
│ └──────────┘
y
Required Methods§
sourcefn intersects(&self, other: &Other) -> bool
fn intersects(&self, other: &Other) -> bool
Returns wether this shape touches, contains or is contained in another shape
┼─────────────────────────────────────── x
│
│ ┌─────────────┐
│ │ │
│ │ ┌──│───────┐
│ └─────────────┘ │
│ └──────────┘
y