correction

Déplacer les carrés violet pour former le symétrique de la figure marron par rapport à l'axe rouge

A_1 = (5, 5)
B_1 = (5, -1)
a = Line(A_1, B_1)
C_1 = (0, 3)
D_1 = (1, 3)
poly1, b, c, d, e, E_1, F = Polygon(C_1, D_1, 4)
G = (1, 2)
H = (2, 2)
poly2, f, g, h, i, I, J = Polygon(G, H, 4)
K = (3, 3)
poly3, j, k, l, m, L, M = Polygon(I, K, 4)
N = (2, 1)
O = (3, 1)
poly4, n, p, q, r, P, Q = Polygon(N, O, 4)
R = (0, 1)
S = (1, 1)
poly5, s, t, a_1, b_1, T, U = Polygon(R, S, 4)
poly1' = Mirror(poly1, a)
poly3' = Mirror(poly3, a)
poly2' = Mirror(poly2, a)
poly4' = Mirror(poly4, a)
poly5' = Mirror(poly5, a)
o = false
A = (8, 5)
B = (9, 3)
C = (6, 3)
D = (11, 3)
E = (9, 1)
V = Point(Circle[A, 1])
W: A + Vector[A, V] + (-OrthogonalVector[Segment[A, V]])
Z: A + (0 * Vector[A, V]) + (-OrthogonalVector[Segment[A, V]])
poly6, a_2, v, w, z_1 = Polygon(A, V, W, Z)
F_1 = Point(Circle[B, 1])
G_1: B + Vector[B, F_1] + (-OrthogonalVector[Segment[B, F_1]])
H_1: B + (0 * Vector[B, F_1]) + (-OrthogonalVector[Segment[B, F_1]])
poly7, b_2, f_1, g_1, h_1 = Polygon(B, F_1, G_1, H_1)
I_1 = Point(Circle[C, 1])
J_1: C + Vector[C, I_1] + (-OrthogonalVector[Segment[C, I_1]])
K_1: C + (0 * Vector[C, I_1]) + (-OrthogonalVector[Segment[C, I_1]])
poly8, c_1, i_1, j_1, k_1 = Polygon(C, I_1, J_1, K_1)
L_1 = Point(Circle[D, 1])
M_1: D + Vector[D, L_1] + (-OrthogonalVector[Segment[D, L_1]])
N_1: D + (0 * Vector[D, L_1]) + (-OrthogonalVector[Segment[D, L_1]])
poly9, d_1, l_1, m_1, n_1 = Polygon(D, L_1, M_1, N_1)
O_1 = Point(Circle[E, 1])
P_1: E + Vector[E, O_1] + (-OrthogonalVector[Segment[E, O_1]])
Q_1: E + (0 * Vector[E, O_1]) + (-OrthogonalVector[Segment[E, O_1]])
poly10, e_1, o_1, p_1, q_1 = Polygon(E, O_1, P_1, Q_1)