Main Page | File List

Lecture14: 2D Animation.

Download.

Click here to download source code of this lecture.

Programming

2D Rotation.

For those who want to have a try on rotation, here is the necessary math. Under a rotation of angle theta, the original point (x,y) is rotated to new point (new_x, new_y).
new_x = cos(theta) * x - sin(theta) * y; new_y = sin(theta) * x + cos(theta) * y;
.

Homework: 2D Animation.

Generate any 2D animation, send zh2001 AT columbia DOT edu the source code and the gif animation file, cc a copy to xchen AT cs DOT utah DOT edu, before Monday (July 12) 7pm.
Generated on Fri Jul 9 11:02:31 2004 by doxygen 1.3.6