Somme des distances de M 
aux côtés du triangle ABC =

A = (-1.46, -0.04)
B = (2.8380521040431055, -0.7182514604289799)
poly1, a, b, c, C = Polygon(A, B, 3)
d = Line(A, B)
e = Line(C, B)
f = Line(C, A)
M = (5.38, 2.34)
g = OrthogonalLine(M, e)
h = OrthogonalLine(M, d)
i = OrthogonalLine(M, f)
E = Intersect(f, i)
F = Intersect(d, h)
H = Intersect(e, g)
j = Segment(B, H)
k = Segment(B, F)
l = Segment(C, E)
m = Segment(E, M)
n = Segment(M, F)
p = Segment(M, H)
s: m + n + p
text2: s + ""