Lec3 CG
Lec3 CG
Transformations
Fig. 3-1
2. Rotation:
It is a process of changing the angle of the object.
Rotation can be clockwise (negative angle) or counterclockwise (positive angle)
P'=RƟ(P)
Where x'=x cosƟ – y sinƟ
y'=x sinƟ + y cosƟ
4. Reflection:
It is a transformation with evaluate the mirror image of the object.
There are two types:
Reflection with respect to x-axis.
P'=Mx(P) where x' = x and y' = -y
Reflection with respect to y-axis.
P'=My(P) where x' = -x and y' = y