$\mathrm{C}$

$\mathrm{B}$

$\mathrm{P}$

$\mathrm{D}$

$\mathrm{A}$

C = (3.961139969425894, 1.3631359456744723)
B = (-1.1054737792752922, 1.5467089075839358)
P = (2.621057347486812, 4.667449260044815)
c = Segment(P, C)
D = (4.2364994122900885, 4.245231447653049)
A = (-0.45389785832294915, 6.201930258100409)
a = Segment(P, A)
b = Segment(P, B)
d = Segment(P, D)
f: a + b + c + d