// метод вычисляет точки пересечения фигур по контексту строки s. static void figureIntersection(String s) { if (s.equals("ll")) { Object[] ob = line1.intersection(line2); toScreen(ob); } if (s.equals("lc") | s.equals("cl")) { Object[] ob = circle1.intersection_with_line(line1); toScreen(ob); } if (s.equals("lt") | s.equals("tl")) { Object[][] ob = triangle1.trianle_intersection_with_line(line1); toScreen(ob); } if (s.equals("lr") | s.equals("rl")) { Object[] ob = rectangle1.intrsc_Line(line1); toScreen(ob); } if (s.equals("cc")) { Object[] ob = circle1.circles_intersection(circle2); toScreen(ob); } if (s.equals("ct") | s.equals("tc")) { Object[][] ob = triangle1.trianle_intersection_with_circle(circle1); toScreen(ob); } if (s.equals("cr") | s.equals("rc")) { Object[][] ob = rectangle1.intrsc_Rect_Circle(circle1); toScreen(ob); } if (s.equals("tt")) { Object[][] ob = triangle1.trianles_intersection(triangle2); toScreen(ob); } if (s.equals("tr") | s.equals("rt")) { Object[][][] ob = rectangle1.intrsc_Rect_Triangle(triangle1); toScreen(ob); } if (s.equals("rr")) { Object[][] ob = rectangle1.intrsc_Rect_Rect(rectangle2); toScreen(ob); } }