Matlab function
Budget: €8 – €30 EUR
Theorem of Thèbault-Yaglom
Write a matlab function tb_2_fkt(A, B, C) (no output parameters) that depending on the points A, B, C in the plane, creates a parallelogram.
The following should be noted:
• To guarantee the uniqueness of the missing point D, assume that the orientation is defined by the line (AB) ⃗ and (BC) ⃗.
• Calculate and draw the two height vectors to the sides (AB) ⃗ as well as (BC) ⃗.
• Calculate and draw the four outward squares along the side lines of the parallelogram
• According to Thèbault-Yaglom's theorem, the line connecting the centers of these squares again forms a square of its own. Include this in your drawing as well.
Test your program for the points
A=(1,0) B=(-2,1) C=(3,3)
Write a matlab function tb_2_fkt(A, B, C) (no output parameters) that depending on the points A, B, C in the plane, creates a parallelogram.
The following should be noted:
• To guarantee the uniqueness of the missing point D, assume that the orientation is defined by the line (AB) ⃗ and (BC) ⃗.
• Calculate and draw the two height vectors to the sides (AB) ⃗ as well as (BC) ⃗.
• Calculate and draw the four outward squares along the side lines of the parallelogram
• According to Thèbault-Yaglom's theorem, the line connecting the centers of these squares again forms a square of its own. Include this in your drawing as well.
Test your program for the points
A=(1,0) B=(-2,1) C=(3,3)