Question: second part o f wha the code should b e : HINT: Take each set of coordinate pairs ( i . e . , each

second part of wha the code should be: HINT: Take each set of coordinate pairs (i.e., each row of the CP array) and apply
the scaling, rotation, and/or translation to that coordinate pair individually. In other words, for three sets of coordinate pairs, you will do the scaling, rotation, and/or translation three times (think how a loop can be used for this!)
1. Generate a curve based on CP =[0,0; 7.5,9; 15,0].
2. Generate CP_new1 based on the input points CP =[0,0; 7.5,9; 15,0] and a rotation matrix R1 with and the translation vector T1=[3,10].\theta =90\deg
3. Generate CP_new2 based on the input points CP_new1 and a rotation matrix R2 with .\theta =45\deg
4. Generate CP_new3 based on the input points CP =[0,0; 7.5,9; 15,0] and a scaling matrix S1 with and the translation vector
T2=[0,-15].
5. Generate CP_new4 based on the input points CP =[0,0; 7.5,9; 15,0] and a transformation matrix TR1 that is defined by (matrix multiplication
and the translation vector T3=[20,10].
6. Generate CP_new5 based on the input points CP =[0,0; 7.5,9; 15,0] and atransformation matrix TR2 that is defined by (element-by-element multiplication) and the translation vector -T3=-1*[20,10
 second part of wha the code should be: HINT: Take each

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!