A = (-2.2, 1.06)
B = (2.4000000000000012, 1.1399999999999997)
C = (0.3, 5.2)
polígono1, c, a, b = Polygon(A, B, C)
d = OrthogonalLine(C, c)
P = Intersect(d, c)
D' = Mirror(P, b)
P'' = Mirror(D', a)
e = Segment(P'', P)
R = Intersect(a, e)
f = Segment(D', R)
Q = Intersect(b, f)
g = Segment(P, Q)
polígono2, f_1, d_1, e_1 = Polygon(P, R, Q)
h = Segment(P, P'')
E = Point(c)
D'_1 = Mirror(E, b)
E'' = Mirror(D'_1, a)
i = Segment(E, E'')
G = Intersect(a, i)
j = Segment(D'_1, G)
F = Intersect(b, j)
k = Segment(E, F)
polígono3, f_2, d_2, g_1 = Polygon(E, F, G)
l = Segment(E, E'')
distanciaPP'' = Distance(P, P'')
distanciaEE'' = Distance(E, E'')
TextoPP'': "\overline{" + (Name[P]) + "" + (Name[P'']) + "} \, = \, " + (LaTeX[distanciaPP'']) + ""
TextoEE'': "\overline{" + (Name[E]) + "" + (Name[E'']) + "} \, = \, " + (LaTeX[distanciaEE'']) + ""