Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Download and run the LiveScript MAT 3 4 3 LAB 4 ex 7 . mlx ( for your convenoience a pdf version is also provided

Download and run the LiveScript MAT343LAB4ex7.mlx (for your convenoience a pdf version is also provided).
Consider the square in EXAMPLE 9 in the livescript. The goal of this exercise is to bring back the square to its original position by first translating it horizontally to the left units using iterations, and then rotating it counterclockwise radians around the point using iterations. This can be done by modifying the code in EXAMPLE 9 by adding two for loops. The first loop should translate the square while the second should rotate it around the point (1,0).
Here are the specific instructions:
Enter the translation matrix that translates horizontally to the left units using iterations and store it in the variable M2
Use the matrix M2 and a for loop to translate the squrae.
Enter the rotation matrix that rotates around the point (1,0) and store it in QP1.
Use the matrix QP1 to rotate the square ccounterclockwise around the point using 3 iterations for a total angle of
For your convenience the main part of the code, taken from Example 9, is included in the script box. Fill in the missing parts. Don't forget to include your name in the script.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions