PDA

View Full Version : rotation problem



madan.tecno
01-09-2013, 05:32 AM
hai ,
i am new to opengl.
i want to rotate a line around a circle
can anyone help me

madan.tecno
01-09-2013, 05:35 AM
i wnt to rotate the line around the outer edge of the cirlce

tonyo_au
01-09-2013, 04:07 PM
translate the line rotation point to the origin, rotate by x degrees, calculate the new point on the circle to match this rotation, translate the line to the new point