Criterio di similitudine 2

AC : A'C' = BC : B'C' = AB : A'B'

A = (0, -4)
B = (7, -4)
C = (1, 0)
poli1, c, a, b = Polygon(A, B, C)
D = (-8, -4)
A' = Dilate(A, 2, D)
B' = Dilate(B, 2, D)
C' = Dilate(C, 2, D)
poli1', c', a', b' = Polygon(A', B', C')
distanzaAC = Distance(A, C)
TestoAC: "\overline{" + (Name[A]) + (Name[C]) + "} \, = \, " + distanzaAC
distanzaBC = Distance(B, C)
TestoBC: "\overline{" + (Name[B]) + (Name[C]) + "} \, = \, " + distanzaBC
distanzaA'C' = Distance(A', C')
TestoA'C': "\overline{" + (Name[A']) + (Name[C']) + "} \, = \, " + distanzaA'C'
distanzaC'B' = Distance(C', B')
TestoC'B': "\overline{" + (Name[C']) + (Name[B']) + "} \, = \, " + distanzaC'B'
distanzaAB = Distance(A, B)
TestoAB: "\overline{" + (Name[A]) + (Name[B]) + "} \, = \, " + distanzaAB
distanzaA'B' = Distance(A', B')
TestoA'B': "\overline{" + (Name[A']) + (Name[B']) + "} \, = \, " + distanzaA'B'