Click to See Complete Forum and Search --> : Line rotation


simib_20
June 16th, 2008, 02:42 AM
hi
i want to rotate a line in clockwise direction in VC++
please help me.

Thanks
simi

JPhi1618
June 16th, 2008, 10:18 AM
Depends on how you are defining your line. Depends on how you are drawing your line...

I would suggest defining a start point and an angle of rotation, and then calculating the second point based on that angle. Then you would just need to decrement the angle to make the line rotate...