@Test public void intersectionEdgeLimitTest() { LineSegment lineSegment1 = new LineSegment(new Point(0, 0), new Point(0, 1)); LineSegment lineSegment2 = new LineSegment(new Point(1, 1), new Point(-1, 1)); List<Point> res = LineSegmentIntersection.solve(Arrays.asList(lineSegment1, lineSegment2)); assertEquals(1, res.size()); assertEquals(new Point(0, 1), res.get(0)); }
public static List<Point> solve(List<LineSegment> input) { return null; }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; } }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; }  }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; }  static List<Point> solve(List<LineSegment> input); }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; }  static List<Point> solve(List<LineSegment> input);  }