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> 59<br />

Write a short C function or give a matrix that takes normalized coordinates <strong>and</strong> outputs<br />

PostScript coordinates.<br />

19.2 Matrix Transformations [Last Used: Winter 2013 Final]<br />

Let T be the matrix<br />

T =<br />

⎡<br />

⎢<br />

⎣<br />

2 0 1<br />

0 1 0<br />

0 0 1<br />

1. Suppose T represents a transformation mapping points specified relative to frame F w =<br />

{w 1 , w 2 , O w } to points specified relative to frame F v = {v 1 , v 2 , O v }. In the figure below, draw<br />

T (P ) where P ’s coordinates relative to F w are P = [1, 1, 1] T . Be sure to label T (P ) in the<br />

figure.<br />

2. Now suppose that T represents a change of coordinates from frame F w to a frame F q =<br />

{q 1 , q 2 , O q }. In the figure below, draw <strong>and</strong> label the frame elements of F q .<br />

⎤<br />

⎥<br />

⎦<br />

v 2<br />

w 2<br />

P<br />

O v<br />

O w<br />

w 1<br />

v 1<br />

19.3 Change of basis, geometric transformation [Last Used: Winter 1998<br />

<strong>Midterm</strong>]<br />

In the figure below are two coordinate frames, F W = {w 1 , w 2 , O W } <strong>and</strong> F V = {v 1 , v 2 , O V } with<br />

v 1 = w 2 , v 2 = w 1 , <strong>and</strong> O V = O W + v 1 + v 2 (note the relationship between the basis vectors). Both<br />

coordinate frames are orthonormal.<br />

v 1<br />

w 2<br />

v<br />

v<br />

2<br />

w<br />

w 1

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

Saved successfully!

Ooh no, something went wrong!