A = (-3.3049180327868846, 3.3436053214601866)
B = (0.7081967213114753, 3.363277452607728)
C = (1.4754098360655734, 2.241965977197892)
tc = Line(B, C)
D = Point(tc)
E = (-2.950819672131147, -1.7711487769004677)
AB = Segment(A, B)
BC = Segment(B, C)
CD = Segment(C, D)
DE = Segment(D, E)
M = Point(AB)
r_M = AffineRatio(A, B, M)
N = Dilate(C, r_M, B)
P = Dilate(N, r_M, M)
f = Segment(M, N)
lieu1 = Locus(P, M)
M' = Point(CD)
r_M' = AffineRatio(C, D, M')
N' = Dilate(E, r_M', D)
P' = Dilate(N', r_M', M')
g = Segment(M', N')
lieu2 = Locus(P', M')
PA: A
PC: C
PD: D
PE: E
PB: B
PM: M
PM': M'