2-dilation

Dilation

slide →

s = 1 (slider from 0 to 1, step 0.01)
O = (0.05455870266688432, 1.7562123083106653)
ScalingFactor = 3 (slider from -2 to 3, step 0.1)
A = (1.83161358197646, 0.9450301447192422)
a = 0.39427226090838774 (slider from -5 to 5, step 1)
b = 1.2450702976054389 (slider from -5 to 5, step 1)
B: (a + x(A), b + y(A))
c = -0.5810328055492038
d = 2.01286364779546
C: (c + x(A), d + y(A))
e = -0.22826288789433002
f = 1.2450702976054389
D: (e + x(A), f + y(A))
g = -1.1413144394716497
h = 0.18676054464081593
E: (g + x(A), h + y(A))
poly1, a_1, b_1, c_1, d_1, e_1 = Polygon(A, B, C, D, E)
A' = Dilate(A, (s * (ScalingFactor - 1)) + 1, O)
B' = Dilate(B, (s * (ScalingFactor - 1)) + 1, O)
C' = Dilate(C, (s * (ScalingFactor - 1)) + 1, O)
D' = Dilate(D, (s * (ScalingFactor - 1)) + 1, O)
E' = Dilate(E, (s * (ScalingFactor - 1)) + 1, O)
poly1', a', b', c', d', e' = Polygon(A', B', C', D', E')
i = Segment(O, E)
j = Segment(O, E')