Computer Science Canada Trigonometry with pic.rotate help |
Author: | david92ng [ Sat May 10, 2008 8:17 pm ] |
Post subject: | Trigonometry with pic.rotate help |
we have one point (x,y) and we have an other point(x2,y2) x,y is the center. lets say x2 and y2 is some random point around the center. now the question, i want to draw a picture at the center(x,y) and after i will use pic.rotate it so it will point to x2,y2. To do that i somehow need the angle from the center to the other point. i totally forgot Trigonometry which i know i need to use for this. can someone give me the formula? thanks |
Author: | CodeMonkey2000 [ Sat May 10, 2008 9:49 pm ] | ||
Post subject: | Re: Trigonometry with pic.rotate help | ||
Merry Christmas!
Just pass in the coordinates of your two points. |
Author: | david92ng [ Sat May 10, 2008 10:50 pm ] |
Post subject: | Re: Trigonometry with pic.rotate help |
thanks. works great. |