Menu

(Solved) : 6 Would Like Design New Operator Graphics Language Generates Mirror Image Objects Across Y Q44009698 . . .

6. We would like to design a new operator for our graphics language which generates the mirror image of objects across the y=6. We would like to design a new operator for our graphics language which generates the mirror image of objects across the y=2 line. Let’s suppose we are working in a 2D world, so we forget about the z coordinate. a. What is the 3×3 homogeneous matrix which will perform this transformation? b. Now suppose we’d like to provide a command Mirror Yly.) to mirror across an arbitrary y=y. line. What is the matrix this command will produce? c. Now suppose you wanted to create the command by writing it as a function of Translate(). Scale() and Rotation(). Write the function below which implements the desired transform. Pseudo-code is acceptable. Matrix is a type, and using code like MET*S*R is also acceptable. Matrix MirrorY(float yo) { Show transcribed image text 6. We would like to design a new operator for our graphics language which generates the mirror image of objects across the y=2 line. Let’s suppose we are working in a 2D world, so we forget about the z coordinate. a. What is the 3×3 homogeneous matrix which will perform this transformation? b. Now suppose we’d like to provide a command Mirror Yly.) to mirror across an arbitrary y=y. line. What is the matrix this command will produce? c. Now suppose you wanted to create the command by writing it as a function of Translate(). Scale() and Rotation(). Write the function below which implements the desired transform. Pseudo-code is acceptable. Matrix is a type, and using code like MET*S*R is also acceptable. Matrix MirrorY(float yo) {

Expert Answer


Answer to 6. We would like to design a new operator for our graphics language which generates the mirror image of objects across t…

OR