myelin-geometry 2.4.3

Basic linear and vector geometry for two-dimensional Euclidean geometry
Documentation
/// 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;
}