Write an animation program that implements the example two-dimensional rotation procedure of Section 5-1. An input polygon

Question:

Write an animation program that implements the example two-dimensional rotation procedure of Section 5-1. An input polygon is to be rotated repeatedly in small steps around a pivot point in the xy plane. Small angles are to be used for each successive step in the rotation, and approximations to the sine and cosine functions are to be used to speed up the calculations. To avoid excessive accumulation of round-off errors, reset the original coordinate values for the object at the start of each revolution.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: