x = Math.cos(angle) * radius y = Math.sin(angle) * radius Keep in mind the angle here needs to be in radians. If your angle is in degrees, multiply it by 180 / Math.PI.
Also keep in mind the x and y values you get here will be relative to the circle's center. --T On Thu, Apr 9, 2009 at 11:02 AM, Fabio Pinatti <fpina...@gmail.com> wrote: > Hello list, > > since I ran from math classes, I have a question that I'm almost sure it's > not hard to solve, but I don't know how to. I put a image at > http://pinatti.com.br/circle.jpg, where it's a circle with red dots. I > need > to compute red dots's x/y position. The data I have is the angle that I > increment (in this case 45ยบ each round), and the distance (the hypotenuse, > right?). > > Any ideas for this math? > > Thanks in advance.. > > -- > Fabio Pinatti > :: web.developer > :::: www.pinatti.com.br > :::::: 19. 9184.3745 / 3342.1130 > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders