C and rotation of rectangle

Light Poster
9Jan2007,22:41   #1
Ubha's Avatar
Dear all,

I want to rotate rectangle in C. How do i start for this?

thankx,
ubha
Team Leader
9Jan2007,23:22   #2
DaWei's Avatar
Define an origin and a point of rotation. Move each constituent of the rectangle through the appropriate angle using trigonometry. Plot the result.