# archamedeesSpiral java applet draw help

archamedeesSpiral java applet draw help

March 15, 2008 - 08:05
hi there, with this method, i'm wanting to be able to call it 3/4 times on the page of my applet. how do i go about finding the centre of this spiral, so i can add the x and y value when i call it in the applet, to plot it wherever on the page? ie 1 in the middle, 1 top left and 1 at a random x y coord etc

http://rafb.net/p/VN2mIo57.html

Message was edited by: perplexingtrax

its ok now, thanks anyway

this

x2 = (int)( radius*Math.cos(angle) );

2 = -(int)( radius*Math.sin(angle) );

to this

x2 = +x(int)( radius*Math.cos(angle) );

2 = -y(int)( radius*Math.sin(angle) );

easy as that!