1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
/// Tests wether wether this shape touches, contains or is contained in another shape /// ```other /// ┼─────────────────────────────────────── x /// │ /// │ ┌─────────────┐ /// │ │ │ /// │ │ ┌──│───────┐ /// │ └─────────────┘ │ /// │ └──────────┘ /// y /// ``` pub trait Intersects<Other: ?Sized = Self> { /// Returns wether this shape touches, contains or is contained in another shape /// ```other /// ┼─────────────────────────────────────── x /// │ /// │ ┌─────────────┐ /// │ │ │ /// │ │ ┌──│───────┐ /// │ └─────────────┘ │ /// │ └──────────┘ /// y /// ``` fn intersects(&self, other: &Other) -> bool; }