inversion de la chambre et de la salle d'eau

S

E

O

N

7m

9m

4m

3m

3m

1m

1m ≤ x ≤ 2,1m

3m - x

5m

0.6m

0.6m

0.6m

0.9m

0.9m

Cambre à
coucher

Salle
d'eau

Cuisine

Séjour

Couloir

o = false
A = Intersect(xAxis, yAxis)
c = Segment(A, A - (1.1, 0.0))
E = Point(c)
B: A + (1.0, 0.0)
d = Segment(B, E + (2.1, 0.0))
F = Point(d)
H: F + (3.0, 0.0)
R: H - (9.0, 0.0)
D_2 = Point(Segment[R, R + (2.4, 0.0)])
O = If(o, E - (3.0 - (x(F) - x(E)), 0.0), E - (3.0, 0.0))
U = Point(Segment[O, O + (2.4, 0.0)])
E_3 = If(o, D_2, U)
G: E - (0.0, 3.0)
D: F - (0.0, 3.0)
e = Segment(E, G)
I = Point(Segment[Midpoint[D, F] + (0.0, 0.7), Midpoint[D, F] + (0.0, 0.4)])
g = Segment(I + (0.1, 0.0), I - (0.1, 0.0))
f = Segment(I, F)
h = Segment(Mirror[I, Midpoint[D, F]] + (0.1, 0.0), Mirror[I, Midpoint[D, F]] - (0.1, 0.0))
i = Segment(D, Mirror[I, Midpoint[D, F]])
J: D + (3.0, 0.0)
j = Segment(F, H)
k = Segment(H, J)
l = Segment(J, D)
K = Point(Segment[F, F + (2.4, 0.0)])
m = Segment(K, K + (0.6, 0.0))
L = Point(Segment[H, H - (0.0, 2.4)])
n = Segment(L, L - (0.0, 0.6))
M: J - (9.0, 0.0)
N = If(o, G - (3.0 - (x(F) - x(E)), 0.0), G - (3.0, 0.0))
P: G - (0.9, 0.0)
p = Segment(P, N)
q = Segment(N, O)
r = Segment(O, E)
Q: M + (0.9, 0.0)
s = Segment(Q, N)
t = Segment(R, O)
a_1 = Segment(R, M)
C: M - (0.0, 4.0)
S: J - (0.0, 4.0)
b = Segment(M, C)
b_1 = Segment(C, S)
c_1 = Segment(S, J)
e_1 = Segment(E_3, E_3 + (0.6, 0.0))
T = Point(Segment[C, C + (4.0, 0.0)])
d_1 = Segment(T, T + (5.0, 0.0))
f_1 = CircleArc(M, Q, Rotate[Q, 45.0*°, M])
g_1 = CircleArc(G, Rotate[P, 315.0*°, G], P)
h_1 = Segment(Rotate[Q, 45.0*°, M], M)
i_1 = Segment(G, Rotate[P, 315.0*°, G])
j_1 = Segment(E, A)
k_1 = Segment(B, F)
p_1 = CircleArc(A, Rotate[B, 315.0*°, A], B)
l_1 = Segment(A, Rotate[B, 315.0*°, A])
V = (-4.78511034667111, 2.571291416590548)
q_1 = Circle(V, 0.2)
W: V + (0.0, 0.6)
Z: V - (0.0, 0.6)
A_1: V - (0.6, 0.0)
B_1: V + (0.6, 0.0)
a = Segment(W, Z)
m_1 = Segment(A_1, B_1)
C_1 = Rotate(Intersect[q_1, Segment[V, W]], 45.0*°, V)
D_1 = Rotate(C_1, 90.0*°, V)
E_1 = Rotate(D_1, 90.0*°, V)
F_1 = Rotate(E_1, 90.0*°, V)
n_1 = Segment(A_1, C_1)
r_1 = Segment(A_1, D_1)
s_1 = Segment(D_1, Z)
t_1 = Segment(Z, E_1)
a_2 = Segment(E_1, B_1)
b_2 = Segment(B_1, F_1)
c_2 = Segment(F_1, W)
d_2 = Segment(W, C_1)
G_1: 2.0 * C_1 - V
H_1 = Rotate(G_1, 90.0*°, V)
I_1 = Rotate(H_1, 90.0*°, V)
J_1 = Rotate(I_1, 90.0*°, V)
e_2 = Segment(G_1, I_1)
f_2 = Segment(J_1, H_1)
K_1 = Intersect(d_2, Ray[G_1, Rotate[C_1, Angle[C_1, W, V], G_1]])
L_1 = Mirror(K_1, e_2)
M_1 = Mirror(L_1, m_1)
N_1 = Mirror(M_1, f_2)
O_1 = Mirror(N_1, a)
P_1 = Mirror(O_1, e_2)
Q_1 = Mirror(P_1, m_1)
R_1 = Mirror(Q_1, f_2)
g_2 = Segment(G_1, K_1)
h_2 = Segment(G_1, L_1)
i_2 = Segment(H_1, M_1)
j_2 = Segment(H_1, N_1)
k_2 = Segment(I_1, O_1)
l_2 = Segment(I_1, P_1)
m_2 = Segment(J_1, R_1)
n_2 = Segment(J_1, Q_1)
poly1, v, w, c_3 = Polygon(W, C_1, V)
poly2, c_4, g_3, l_3 = Polygon(G_1, L_1, C_1)
poly3, d_3, a_3, v_1 = Polygon(A_1, V, D_1)
poly4, d_4, h_3, n_3 = Polygon(H_1, N_1, D_1)
poly5, v_2, z, e_3 = Polygon(Z, E_1, V)
poly6, p_2, i_3, e_4 = Polygon(I_1, E_1, P_1)
poly7, v_3, b_3, f_3 = Polygon(B_1, F_1, V)
poly8, j_3, r_2, f_4 = Polygon(R_1, F_1, J_1)
S_1 = Midpoint(C, S)
u = Vector(S_1 - (0.0, 0.5), C - (0.0, 0.5))
u_1 = Vector(S_1 - (0.0, 0.5), S - (0.0, 0.5))
T_1 = Midpoint(C, R)
w_1 = Vector(T_1 - (0.5, 0.0), C - (0.5, 0.0))
z_1 = Vector(T_1 - (0.5, 0.0), R - (0.5, 0.0))
U_1 = Midpoint(k)
V_1 = Midpoint(c_1)
u_2 = Vector(V_1 + (0.5, 0.0), S + (0.5, 0.0))
w_2 = Vector(V_1 + (0.5, 0.0), J + (0.5, 0.0))
z_2 = Vector(U_1 + (0.5, 0.0), J + (0.5, 0.0))
q_2 = Vector(U_1 + (0.5, 0.0), H + (0.5, 0.0))
W_1 = Midpoint(j)
s_2 = Vector(W_1 + (0.0, 0.5), F + (0.0, 0.5))
t_2 = Vector(W_1 + (0.0, 0.5), H + (0.0, 0.5))
Z_1 = Midpoint(r)
A_2 = Midpoint(A, B)
B_2 = Midpoint(E, F)
m_3 = Vector(B_2 + (0.0, 0.8), E + (0.0, 0.8))
p_3 = Vector(B_2 + (0.0, 0.8), F + (0.0, 0.8))
C_2 = Midpoint(t)
z_3 = Vector(A_2 + (0.0, 0.2), A + (0.0, 0.2))
k_3 = Vector(A_2 + (0.0, 0.2), B + (0.0, 0.2))
s_3 = Vector(Midpoint[M, Q] - (0.0, 0.2), M - (0.0, 0.2))
t_3 = Vector(Midpoint[M, Q] - (0.0, 0.2), Q - (0.0, 0.2))
u_4 = Vector(Midpoint[P, G] - (0.0, 0.2), P - (0.0, 0.2))
v_4 = Vector(Midpoint[P, G] - (0.0, 0.2), G - (0.0, 0.2))
texte20: "x = " + (x(F) - x(E)) + "m"
F_2 = If(o, Midpoint[O, G], Midpoint[O, M])
G_2 = If(o, Midpoint[O, M], Midpoint[O, G])
H_2 = Midpoint(F, J)
I_2 = Midpoint(C, J)
texte21: If[o, "\fgcolor{999999}{" + (x(O) - x(R)) + "m}", "\fgcolor{ff9900}{" + (x(O) - x(R)) + "m}"] + ""
texte11: If[o, "\fgcolor{ff9900}{" + (x(E) - x(O)) + "m}", "\fgcolor{999999}{" + (x(E) - x(O)) + "m}"] + ""
J_2: E_3 + (0.3, 0.0)
K_2: J_2 + (0.3, 0.0)
L_2 = Rotate(J_2, 330.0*°, E_3)
M_2 = Rotate(J_2, 30.0*°, K_2)
h_4 = CircleArc(K_2, J_2, M_2)
b_4 = Segment(M_2, K_2)
N_2 = Translate(L_2, Vector[Vector[E_3, K]])
O_2 = Translate(J_2, Vector[Vector[E_3, K]])
Q_2 = Translate(J_2, Vector[Vector[E_3, K]])
R_2 = Translate(M_2, Vector[Vector[E_3, K]])
U' = Translate(E_3, Vector[Vector[E_3, K]])
S_2 = Translate(L_2, Vector[Vector[E_3, K]])
i_4 = Segment(U', S_2)
T_2 = Translate(M_2, Vector[Vector[E_3, K]])
U_2 = Translate(K_2, Vector[Vector[E_3, K]])
j_4 = Segment(T_2, U_2)
V_2: L - (0.0, 0.3)
W_2: V_2 - (0.0, 0.3)
Z_2 = Rotate(V_2, 330.0*°, L)
A_3 = Rotate(V_2, 30.0*°, W_2)
q_4 = CircleArc(W_2, V_2, A_3)
r_4 = CircleArc(L, Z_2, V_2)
l_4 = Segment(Z_2, L)
m_4 = Segment(A_3, W_2)
gauche = If(o, 0.5, 0.8)
q_3 = Vector(C_2 + (0.0, gauche), R + (0.0, gauche))
droite = If(o, 0.8, 0.5)
u_3 = Vector(Z_1 + (0.0, droite), O + (0.0, droite))
r_3 = Vector(C_2 + (0.0, gauche), O + (0.0, gauche))
w_3 = Vector(Z_1 + (0.0, droite), E + (0.0, droite))
E_2 = If(o, Z_1 + (0.0, 0.8), C_2 + (0.0, 0.8))
B_3: 2.0 * Midpoint[D, F] - I
C_3: I + (0.2, 0.0)
D_3: B_3 + (0.2, 0.0)
w_4 = Vector(Midpoint[C_3, D_3], C_3)
z_4 = Vector(Midpoint[C_3, D_3], D_3)
texte26: y(C_3) - y(D_3) + "m"
g_4 = CircleArc(E_3, L_2, J_2)
a_4 = Segment(E_3, L_2)
k_4 = Arc(Translate[Circle[E_3, L_2], Vector[E_3, K]], N_2, O_2)
p_4 = Arc(Translate[Circle[K_2, J_2], Vector[E_3, K]], Q_2, R_2)
P_2 = Translate(K_2, Vector[Vector[E_3, K]])