Beruflich Dokumente
Kultur Dokumente
Computer Graphics
CSE 405
Assignment 3
Submitted To:
Submitted By:
Ms Hardarshan Kaur
Angad Singh
RB1801B37
6
Computer Graphics
TBRL where
• T is set (to 1) if y > top
• B is set (to 1) if y < bottom
• R is set (to 1) if x > right
• L is set (to 1) if x < left
Window Region
Algorithm
6
Computer Graphics
6
Computer Graphics
3D Linear Maps
1: Scaling
A = {s11 0 0
0 s22 0
0 0 s33}
therefore
|A| = s11s22s33
2:Refection
A = {+-1 0 0
0 +-1 0
0 0 +-1}
such that |A| = -1
Ques5: Explain general pivot point rotation, scaling in both 2-D and
3-D transformation
6
Computer Graphics
6
Computer Graphics
We can see from above that to maintain relative position we must have the
following relationship:
Xw - Xwmin Xv - Xvmin
---------------- = ---------------------
Xwmax - Xwmin Xvmax - Xvmin
Yw - Ywmin Yv - Yvmin
---------------- = ---------------------
Ywmax - Ywmin Yvmax - Yvmin
Similarly for Y
6
Computer Graphics