Assignment 4

Date assigned: 11/9/95
Date due: 11/28/95
Points: 50

This assignment involves using the transformations: translation, rotation and scaling to create a robot which can move along a track as follows:

First, you are to define the robot with world coordinates ranging from -100 to 100 in both X and Y directions.

The problem is to generate each of the following:

1) A picture of the robot in its original position as above centered at the origin of the world.

2) Using the keys: p & q move the entire robot either west (q) or east (p).

3) Using the keys: w & o move the part of the arm closest to the body 0 to 90 degrees cw (o) or ccw (w) in increments of 1 degree.

4) Using the keys: e & i move the upper part of the arm 0 to 360 degrees cw (i) or ccw (e) in increments of 1 degree.

Note 1: Allow the user to interactively specify a viewport using normalized coordinates.

Note 2: This assignment is to be fully implemented in C++ and designed around the notion of objects. Further, operator overloading for matrix operations is to be implemented.

Note3: x exits the program.