pub fn is_contiguous(&self, with: &Segment) -> bool {
        if self.a==with.a && self.b==with.b {
            false
        } else {
            self.contains(&with.a)||self.contains(&with.b)||with.contains(&self.a)||with.contains(&self.b)
        }
    }
/// Check if two segments are contiguous
/// (i.e. if the end of one segment corresponds with the beginning of another one
/// or a segment touches another segment without intersecting it)
Check if two segments are contiguous
Check if two segments are contiguous
pub fn is_contiguous(&self, with: &Segment) -> bool {
        if self.a==with.a && self.b==with.b {
            false
        } else {
            self.contains(&with.a)||self.contains(&with.b)||with.contains(&self.a)||with.contains(&self.b)
        }
    }
pub fn is_contiguous ( & self , with : & Segment ) -> bool { if self . a == with . a && self . b == with . b { false } else { self . contains ( & with . a ) || self . contains ( & with . b ) || with . contains ( & self . a ) || with . contains ( & self . b ) } }
Check if two segments are contiguous
(i.e.
Check if two segments are contiguous ( i . e .
&self
with
&Segment
&self
with
&Segment