I = (10.870352, -2.69041)
K = (17.307552000000005, -2.69041)
A = (-1.6168480000000018, -5.59441)
B = (9.369952000000003, -5.59441)
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)