Affichage MBC et aires

affichage différence

hauteurs

A = (-7.477432651800626, 2.8536703088049733)
B = (-1.6290019312556867, -2.7162637107616354)
C = (-12.135922922710881, -2.5137206555046676)
poly1, c, a, b = Polygon(A, B, C)
M = (-10.804009742032372, 3.2251168828925625)
poly2, b_1, d, c_1 = Polygon(M, C, B)
texte1: "L'aire du triangle ABC est " + poly1
texte2: "L'aire du triangle MBC est " + poly2
e = true
texte3: "aire rouge - aire bleue = " + (poly1 - poly2) + "cm²"
f = true
g = Line(C, B)
h = OrthogonalLine(M, g)
D = Intersect(g, h)
i = Segment(M, D)
j = OrthogonalLine(A, a)
k = OrthogonalLine(A, a)
E = Intersect(k, a)
l = Segment(A, E)
m = true