CSCE4230 - Final Flashcards
Construct a scaling matrix
S = (S1, S2, S3)
S1 0 0 0
0 S2 0 0
0 0 S3 0
0 0 0 1
Construct a clockwise Rotation by X matrix
1 0 0
0 C -S
0 S C
Construct a clockwise Rotation by Y matrix
C 0 S
0 1 0
-S 0 C
Construct a clockwise Rotation by Z matrix
C -S 0
S C 0
0 0 1
Scalar multiplication
[4][ a11 a12 a13
a21 a22 a23
a31 a32 a33]
4(aij) (i,j = 1, 2, 3)
Matrix multiplication
(AB)ij = Σ AikBkj
Matrix Transpose
(A^T)ij = Aji
Scalar Product
<u> = Σ Ui Vi</u>
Vector Cross Product
p2p3 - p3p2
p3p1 - p1p3
p1p2 - p2p1
Vector Length
||V|| = √v1^2 + v2^2 + v3^2
Orthogonal Vectors
U1V1 + U2V2 + U3V3 = 0
Matrix inverse
AA^-1 = A^-1 A = I
Orthogonal Matrix
U^T = U^-1
Clockwise or Counter-clockwise
1 0 0
0 C S
0 -S C
Counterclockwise
Clockwise or Counter-clockwise
1 0 0
0 C -S
0 S C
Clockwise
point of intersection of the line defined by points p0 = (x0,y0) and p1 = (x1,y1) with the bottom boundary y = Ymin
( (x1 - x0) / (y1 - y0) ) (ymin - y0) + x0 , ymin)
point of intersection of the line defined by points p0 = (x0,y0) and p1 = (x1,y1) with the bottom boundary x = Xmax
(xMax , ( (y1-y0) / (x1-x0) ) (xmax - x0) + y0 ) )
rotate counter clockwise about y-axis
R = C 0 S 0 0 1 0 0 -S 0 C 0 0 0 0 1
R( X, Y, Z, 1 ) = Cx + Sz
y
-Sx + Cz
1
Rotate counter clockwise through angle Theta about the pole
1) Rotate 45 degrees CW about Z
2) Rotate CCW through theta about X
3) Rotate 45 degrees CCW about Z
Formula for lagrangian polynomial interpolation
y0[ (x−x1)(x−x2) / (x0−x1)(x0−x2)] + y1[ (x−x0)(x−x2) / (x1−x0)(x1−x2) ]+y2[ (x−x0)(x−x1)/ (x2−x0)(x2−x1) ]
What is the Cohen Sutherland Line Clipping Test
C0 | C1 = 0 -> ACCEPT
C0 & C1 != 0 -> REJECT
In Phong Illumination what is: Ij
Reflective Intensity
In Phong Illumination what is: Iaj
ambient light intensity
In Phong Illumination what is: Ipj
point light intensity