A hasonlóság aránya (λ)

k = 0.5 (slider from -5 to 5, step 0.1)
A = (-0.54, 2.44)
B = (2.52, -5.76)
C = (-2.5, -3.12)
eredeti, c, a, b = Polygon(A, B, C)
O = (9.7, -3.06)
A' = Dilate(A, k, O)
B' = Dilate(B, k, O)
C' = Dilate(C, k, O)
hasonló, c', a', b' = Polygon(A', B', C')
d = Line(A, O)
e = Line(C, C')
f = Line(B, B')