03-19-2004, 02:45 AM

c++/glut/opengl

ok, I have a project where i have to do a rotation of a line without using any gl methods, all work has to be done with the base formulas :

x' = x cosq – y sinq

y' = x sinq + y cosq

these formulas work from the origin, but the line can be from/to anypoint on the screen, it has to be rotated around its midpoint 5 degrees. If anyone can start me off id be greatly appreciative.

ok, I have a project where i have to do a rotation of a line without using any gl methods, all work has to be done with the base formulas :

x' = x cosq – y sinq

y' = x sinq + y cosq

these formulas work from the origin, but the line can be from/to anypoint on the screen, it has to be rotated around its midpoint 5 degrees. If anyone can start me off id be greatly appreciative.