Write a Matlab program that takes in as an input up to 4 polygon vertices in Car
ID: 2085901 • Letter: W
Question
Write a Matlab program that takes in as an input up to 4 polygon vertices in Cartesian coordinates (x, y). It should also take as an input a matrix that can describe any of the following 2D transformations in homogeneous coordinates: translation, Euclidian, similarity, affine or projective. Note that all the transformations must be performed in homogeneous coordinates. a. Input Cartesian coordinates for an equilateral triangle b. Select appropriate matrices for each type of 2D transformation. Perform all the above-mentioned transformations on the triangle. Plot the original triangle and transformed triangles for each transformation. c. Input Cartesian coordinates for a square d. Perform the same transformations on the square using the same matrices as in b). Plot the original square and transformed squares for each transformation.Explanation / Answer
equilateral triangle
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.