p' = Mp, where p=[x,y,1]T and M is a 3x3 matrix of the form: |
|
- [3 marks] Write the matrix M for such a transformation if one exists.
- [2 marks] Decompose M into a scale matrix S, and translate matrix T.
Use the template code provided at:
Submit your code electronically on CDF, using one of the following commands:submit -N a1q6 csc418h poly.cpp ui.cpp
submit -N a1q6 csc2504h poly.cpp ui.cpp