Quiz 1: Study Guide
Quizzes are open book. 30 minutes at the start of class
Topics:

points and vectors

coordinate systems

matrix dimension, transpose, and multiplication
Vector practice
1) Short answer

What does NaN stand far? When can it occur?

Suppose we have an angle X in degrees. Give an expression for converting it to radians.

Suppose we have an angle X in radians. Give an expression for converting it to degrees.

What is the origin?

What is the difference between a direction and a point?

What is a unit vector?

What does it mean to normalize a vector? Why might we want to do this?

Do the builtin functions for sin, cos, and tan in C++ take radians or degrees?

What is the difference between atan and atan2? Which is better and why?
2) Suppose we wish to stack three triangles in a row as in the diagram below. Let each triangle’s base be 2 units wide and each triangle’s height be 2 units high. The origin of each triangle is at the bottom left corner.

What should the positions of each triangle be if we would like the centers of each triangle to be along the Yaxis?

Write psuedocode to position N traingles along the Y axis.

Suppose the bottom triangle is traveling with velocity (0,1,0) units per second. At what time will it be aligned with the top triangle?

What should the positions of the triangles be if we wish to position each triangle 130 degrees apart in a circle 1 unit away from the origin? Express your answer in terms of sine and cosine.
3) Suppose we have a target at a point g and we wish to compute a point p between g and the origin. Derive an expression for p using atan2.
4) Suppose we have a particle at position (1,1).

What is its distance from the origin?

What is its distance from the xaxis?

Its distance from the yaxis?

What is the angle between the direction (1,1) and the positive xaxis?

Angle from the negative xaxis?

Angle from the positive yaxis?
5) Suppose we have two particles at position (1,1) and (3,4). Draw them. How far apart are they from each other?
6) Suppose we have a vector v = (1,2,0)^T and u = (2, 3, 0)^T. What is the value of u+v? Draw u, v, and u+v. Suppose we multiply v by 2. Compute and draw the result.
7) Suppose we have a vector v = (1,2,0)^T. What is its length? Give and expression and evaluate it. Write a program that defines v and prints its length.
8) A particle travels with velocity (1,2,3) units per second. What is its speed? Where will the particle be after 3 seconds if it starts at position (1,2,3)? Suppose we wish to change the speed to 10 units per second. What would the new velocity be? Write a program that implements the movement of the particle p.
9) Suppose we have an animation that runs at 24 fps. What does this mean? How many frames do we display in a minute? How much time passes between each frame?