Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   C and rotation of rectangle (http://www.go4expert.com/forums/c-rotation-rectangle-t2498/)

Ubha 9Jan2007 22:41

C and rotation of rectangle
 
Dear all,

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

thankx,
ubha

DaWei 9Jan2007 23:22

Re: C and rotation of rectangle
 
Define an origin and a point of rotation. Move each constituent of the rectangle through the appropriate angle using trigonometry. Plot the result.


All times are GMT +5.5. The time now is 09:30.