Q = (-3, -1)
P = (-2.5674629433961074, 0.7193044494387162)
R = (0, -1)
f = Line(Q, R)
g = Line(Q, P)
h = Line(P, R)
S = Point(g)
T = Point(f)
i = Line(S, T)
a = (0, 4)
j = Line(a, xAxis)
b = Point(j)
c = Point(j)
d = Point(j)
m = Segment(a, b)
n = Segment(b, c)
p = Segment(c, d)
rU = AffineRatio(a, c, d)
U = Dilate(P, rU, Q)
rV = AffineRatio(b, c, d)
V = Dilate(R, rV, Q)
k = Line(U, V)
D = Intersect(i, k)
l = Line(U, R)
q = Line(D, f)
K = Intersect(l, q)
r = Line(K, g)
C = Intersect(h, r)
s = Line(C, D)
B = Intersect(g, s)
A = Intersect(f, s)
AB = Segment(A, B)
BC = Segment(B, C)
CD = Segment(C, D)