I = (10.870352, -2.69041)
J = (16.291152000000004, -2.69041)
C = (-2.004048000000001, -4.96521)
D = (8.305152000000001, -4.96521)
a, b, c, d, E, F, G, H, K, L = carré_milieu(C, D)

Tool: carré_milieu
carré_milieu[ <Point>, <Point> ]
Input: A, B
Output: e, f, g, h, C, D, F, G, H, E

poly1, a, b, c, d, C, D = Polygon(A, B, 4)
E = Midpoint(c)
F = Midpoint(b)
G = Midpoint(a)
H = Midpoint(d)
e = Segment(D, C)
f = Segment(C, B)
g = Segment(B, A)
h = Segment(A, D)