I = (10.991352000000001, -3.22281)
J = (17.936752000000006, -3.22281)
A = (-0.818248000000002, -4.91681)
B = (9.442552000000003, -4.91681)
a, b, c, d, C, D, E, F, G, H = carré_milieu(A, B)

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)