CSCI A201/A597

Lecture Notes Eleven

Second Summer 2000


Wrap-up of classes and objects. Screen coordinates.

Here are some pictures we will be using in class today.

For the most part of it we want to wrap up the first four chapters before moving on to control structures.

Besides the pictures above, we need to talk about change of coordinates.

This projection is the basic process.

Changing the coordinates is done in the following way:

And the formulas that go with the picture above are:

This way you can project every point from your drawing (x, y) to your screen (p, q).

The only thing that is needed here is for your screen and bounding rectangle of your picture to be proportional (otherwise your picture will be distorted).

Last updated: July 5, 2000 by Adrian German for A201