IT221-Computer Graphics - Lab 5
IT221-Computer Graphics - Lab 5
Rotate by 45o
around the z axis
(counter-
clockwise)
Example
Rotate by -45o
around the z axis
(clockwise)
1. Rotation around a point
• Example: The point (x, y) is to be rotated
• The (xc yc) is a point about which
counterclockwise rotation is done
• Rotation of (x, y) about the origin
Rotation around a point
Rotation around a point
1. Scaling around a point
• Example: The point (x, y) is to be scaling
•The (xc yc) is a point about which scaling is done
• scaling of (x, y) about the origin
Scaling around a point
Scaling around a point