30.08.2014 Views

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

Past Midterm and Exam Questions (PDF) - Student.cs.uwaterloo.ca ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CS488/688 Introduction to Computer Graphi<strong>cs</strong> 61<br />

19.6 Transformations [Last Used: Winter 1996 <strong>Midterm</strong>]<br />

Suppose we have a transformation T , points P = [1, 1, 1, 1] t , Q = [3, 2, 2, 1] t , R = [5, 3, 3, 1] t . <strong>and</strong><br />

the vector ⃗v = P −Q = Q−R (all points are specified relative to the st<strong>and</strong>ard Cartesean coordinate<br />

frame F = (⃗ı,⃗j, ⃗ k, O)).<br />

Note: Some of the operations described below are invalid. In these <strong>ca</strong>ses, state why the operation<br />

is invalid.<br />

1. Suppose T is a change of basis transformation that maps from the st<strong>and</strong>ard coordinate frame<br />

to the coordinate frame F 2 = (2⃗ı,⃗j, ⃗ k, O + ⃗j).<br />

• Give the matrix representation of T .<br />

• Give the coordinates of P relative to F 2 .<br />

• What is |T (P ) − P |?<br />

• Give the coordinates of ⃗v relative to F − .<br />

• What is the length of T (⃗v)?<br />

2. Suppose T is a s<strong>ca</strong>le by a factor of 2 in the ⃗ı direction.<br />

• Give the matrix representation of T (assuming its domain <strong>and</strong> range frames are both<br />

F ).<br />

• Give the coordinates of T (P ) relative to F .<br />

• What is |T (P ) − P |?<br />

• Give the coordinates of T (⃗v) relative to F .<br />

• What is the length of T (⃗v)?<br />

3. Suppose T is the projective transformation for when we are looking down the positive z<br />

axis <strong>and</strong> projecting through O. Further, suppose that T maps P to (1, 1, −1, 1) <strong>and</strong> R to<br />

(5/3, 1, 1, 1). The matrix representation for this mapping is<br />

⎡<br />

⎢<br />

⎣<br />

1 0 0 0<br />

0 1 0 0<br />

0 0 2 −3<br />

0 0 1 0<br />

where the domain frame is F <strong>and</strong> the range frame is an orthonormal frame for the projection<br />

space after normalization.<br />

• Give the normalized coordinates of T (Q).<br />

• What is |T (P ) − P |?<br />

• Give the normalized coordinates of T (⃗v).<br />

• What is the length of T (⃗v)?<br />

• What are the normalized coordinates of T (O−?<br />

⎤<br />

⎥<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!