Past exam question: 2082 Kartik (Back), Q3(a)
Open in the Padhaiko appExplain the composite rotation in 2D transformation. Given the point (0,0) (1,0) (0,1) and (1,1) where Xref = -1 and Shy = 0.5. Calculate and sketch shearing transformation new coordinates.
Solution
Composite 2D Rotation About an Arbitrary Pivot Point: A basic rotation matrix only rotates an object about the coordinate origin . To rotate an object by angle about an arbitrary pivot point , three successive transformations are composed:
- Translate the pivot point to the origin: .
- Rotate about the origin by angle : .
- Translate the origin back to the pivot point: .
In homogeneous coordinate matrix form:
Shearing Transformation Relative to Reference Line : Shearing parallel to the -axis with shear parameter relative to a reference vertical line transforms coordinates according to:
Given and :
The homogeneous transformation matrix is:
Calculation of Transformed Coordinates: Applying the transformation to the four given vertices of the unit square:
- For point :
- For point :
- For point :
- For point :
Geometric Sketch and Description of Sheared Shape:
- The original shape is a unit square with corners at , , , and .
- Because the shear is in the -direction, all -coordinates remain unchanged ( and ).
- Points on the vertical line shift vertically by (from and ).
- Points on the vertical line shift vertically by (from and ).
- The transformed figure is a parallelogram with vertices , , , and , maintaining vertical sides of length 1 and tilted top/bottom edges of slope .
- Composite rotation about pivot is .
- The sheared coordinates for and are:
- Forming a sheared parallelogram with vertical edges along and .
All past exam questions for Computer Graphics and Visualization