Circles .... Locus...
My friend just gave me a c++ problem..
well the problem was to make small circles on circumfrence of a big circle that is positioned in the middle of screen...
well i can get that middle of screen by getmaxx()/2 ...
but all i can get to find locus of the circle is throught the formulas :
rcos(theta)
rsin(theta)
but this i suppose wrks only for circle having centre (0,0)..
so im kinda stuck here
any help would be appreciated
ultra vires
Junior Poster in Training
51 posts since Feb 2006
Reputation Points: 10
Solved Threads: 5
So just add the centre (cx,cy) to your calculations
r * cos(theta) + cx;
r * sin(theta) + cy;
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
but doesnt rcos(theta) and .... wrks only for that (0,0) circle ??
well let me try it out...will post back .. (currently wrkin with vb :) )
btw thnx a lot for replyin....
ultra vires
Junior Poster in Training
51 posts since Feb 2006
Reputation Points: 10
Solved Threads: 5