B = (2, -2)
C = (10, 3)
D = (-2, 5)
A = (-2, 0)
poly1, a, b, c, d = Polygon(A, B, C, D)
E = Midpoint(d)
F = Midpoint(c)
G = Midpoint(b)
H = Midpoint(a)
poly2, e, f, g, h = Polygon(E, F, G, H)
i = Segment(H, F)
j = Segment(E, G)
I = Intersect(i, j)