Question: second part o f wha the code should b e : HINT: Take each set of coordinate pairs ( i . e . , each
second part wha the code should : HINT: Take each set of coordinate pairs ie each row of the CP array and apply
the scaling, rotation, andor translation to that coordinate pair individually. In other words, for three sets of coordinate pairs, you will do the scaling, rotation, andor translation three times think how a loop can be used for this!
Generate a curve based on CP ; ;
Generate CPnew based on the input points CP ; ; and a rotation matrix R with and the translation vector Ttheta deg
Generate CPnew based on the input points CPnew and a rotation matrix R with theta deg
Generate CPnew based on the input points CP ; ; and a scaling matrix S with and the translation vector
T
Generate CPnew based on the input points CP ; ; and a transformation matrix TR that is defined by matrix multiplication
and the translation vector T
Generate CPnew based on the input points CP ; ; and atransformation matrix TR that is defined by elementbyelement multiplication and the translation vector T
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
