Help me! Rotate algorithm
-
Hi all, I got a big trouble in rotate algorithm in my project. please see all pictures As you see my first picture that I copied from my project. Note that, background picture mustn’t effect when I drag mouse, but grid lines have to be effected when I drag mouse around center point, so when I drag mouse, grid lines must go around center point until I stop drag and release mouse. My trouble is when I drag mouse around center point (yellow triangle) and when angle reach greater than angle 90 (similar picture 2) then I can not reach angle 180 or greater, if I still keep drag mouse till angle 180 then yellow triangle turn back and point to number of about angle 340 (similar picture 3) so when angle greater than angle 90 I have to release mouse then drag mouse again => it’s not good. Please tell me how to solve this trouble. Thank you so much. I’m sorry, My English is not good!
-
Hi all, I got a big trouble in rotate algorithm in my project. please see all pictures As you see my first picture that I copied from my project. Note that, background picture mustn’t effect when I drag mouse, but grid lines have to be effected when I drag mouse around center point, so when I drag mouse, grid lines must go around center point until I stop drag and release mouse. My trouble is when I drag mouse around center point (yellow triangle) and when angle reach greater than angle 90 (similar picture 2) then I can not reach angle 180 or greater, if I still keep drag mouse till angle 180 then yellow triangle turn back and point to number of about angle 340 (similar picture 3) so when angle greater than angle 90 I have to release mouse then drag mouse again => it’s not good. Please tell me how to solve this trouble. Thank you so much. I’m sorry, My English is not good!
-
Maybe posting the relevant code will help. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.