private static Segments[] def(Segments s1, Segments s2, Segments s3, Segments s4) {
return new Segments[] { s1, s2, s3, s4 };
}
private static Segments rotation(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) {
return new Segments(p(x1, y1), p(x2, y2), p(x3, y3), p(x4, y4));
}