private static bool VerticalOverlaps(Line line1, Line line2) { return(line2.Bottom < line1.Top && line1.Bottom < line2.Top); }
private static bool HorizontalOverlaps(Line line1, Line line2) { return(line2.Left < line1.Right && line1.Left < line2.Right); }