CS 381  >  Assignment 5

CS 381, Fall 2003
Assignment 5

General Information

Homework Policies

See the Homework Policies handout.

Questions (5 pts)

Note: If you see some strange symbols below, it is because you are not using an HTML 4.01-compliant browser. In which case, go find one. Since the 4.01 standard is over 5 years old, I don’t think this is asking too much.
  1. Let u = (1, –1 ,2), and let v = (0, 3 ,1). Compute each of the following.
    1. 2u.
    2. u + v.
    3. u – v.
    4. u · v.
    5. u × v.
    6. Find the angle between u and v, in degrees, to one decimal place.

Program (25 pts)

Write a C++ program using OpenGL/GLUT that meets the following requirements.

Sample Code

The Button widget class we discussed is now available. Files are button.h and button.cpp. Also see colorchange.cpp, a program that uses the Button class.

Suggestions for Full Credit

Doing any one of the following is sufficient.

Note

Particularly well-done programs may be demonstrated in class.


CS 381, Fall 2003: Assignment 5 / Last update: 20 Oct 2003 / Glenn G. Chappell / ffggc@uaf.edu