This document contains 4 practice problems related to 2D transformations in computer graphics using OpenGL. The problems include: deriving transformations from slide 7; determining if the order of rotation and translation matters for a square; deriving the transformation matrix for reflecting a point across a line; and deriving the transformation matrix to change coordinate frames.
This document contains 4 practice problems related to 2D transformations in computer graphics using OpenGL. The problems include: deriving transformations from slide 7; determining if the order of rotation and translation matters for a square; deriving the transformation matrix for reflecting a point across a line; and deriving the transformation matrix to change coordinate frames.
This document contains 4 practice problems related to 2D transformations in computer graphics using OpenGL. The problems include: deriving transformations from slide 7; determining if the order of rotation and translation matters for a square; deriving the transformation matrix for reflecting a point across a line; and deriving the transformation matrix to change coordinate frames.
1. Based on the discussions on 2D Transformations, derive transformations in slide no 7.
2. Consider a square of size 2 units, oriented with its axes parallel to X and Y-axis and a centre at (1,2). If the square is first rotated about its centre by an angle of 45 degrees counter clockwise and then translated with its centre to the origin of the coordinate axes instead of first translated with its centre coinciding with the origin of the coordinate axes and then rotated about its centre by an angle of 45 degrees counter clockwise. Will the result be the same? 3. Derive transformation matrix for reflecting a point in the line y = mx + c 4. Derive transformation matrix to transform a point from one coordinate frame to another for the diagram given below: