Morphing et barycentres

A = (-5.76105672824168, 4.3154721504085)
B = (-3.3885690707454446, 5.274562905566553)
C = (-1.5965837124238194, 3.4573383168460317)
D = (-3.2623729187509634, 1.0091329681531065)
E = (-5.48014198333633, 1.789194975555318)
poly1, a, b, c, d, e = Polygon(A, B, C, D, E)
k = 1 (slider from 0 to 1, step 0.1)
A' = (-0.15066681971435614, 4.520050445675346)
B' = (0.7254254842746237, 4.189275998414019)
C' = (1.3059277834492347, 3.154467552059278)
D' = (0.6244685626790392, 2.119659105704537)
E' = (-0.28602540340564353, 1.587281132364149)
poly2, f, g, h, i, j = Polygon(A', B', C', D', E')
A'': k * A + (1.0 - k) * A'
B'': k * B + (1.0 - k) * B'
C'': k * C + (1.0 - k) * C'
D'': k * D + (1.0 - k) * D'
E'': k * E + (1.0 - k) * E'
poly3, a'', b'', c'', d'', e'' = Polygon(A'', B'', C'', D'', E'')