A = (0, 1)
B = (0, 0)
C = (1, 0)
D = (1, 1)
poly1, a, b, c, d = Polygon(A, B, C, D)
E = Midpoint(d)
F = Midpoint(a)
G = Midpoint(b)
H = Midpoint(c)
f = Line(D, F)
g = Line(A, G)
h = Line(B, H)
i = Line(C, E)
J = Intersect(f, g)
K = Intersect(g, h)
L = Intersect(h, i)
M = Intersect(f, i)
poly2, j, k, l, m = Polygon(J, K, L, M)
ratio: poly1 / poly2