KosovaLindore Forum - Powered by XMB 1.9 Nexus (alpha 7)
Our web spider found the following code snippet at www_kosovalindore_net and contains information about atan2 and JavaScript.
atan2(ay,ax)*180/Math.PI);
if (angle < 0) angle += 360;
dy=py-y;
dx=px-x;
distance=Math.floor(Math.sqrt(dx*dx+dy*dy));
go_y = Math.round(vel*Math.sin(angle*Math.PI/180));
go_x = Math.round(vel*Math.cos(angle*Math.PI/180));
py+=go_y;
px+=go_x;
if (distance < vel) pos();
followleader();
tmr=setTimeout("bomb()",20);
bomb();
function dsbl(){
v=(n4)?"hide":"hidden";
put=true;
x=0;
y=0;
setTimeout('clearTimeout(tmr)',stopafter+100);
setTimeout('dsbl()',stopafter);
//-->
</script>



 
</BODY>
 
</HTML>



   


        

 

bledari 

Super Moderato
r  
 

 
 

 

 Posts 32
 

 Registered 26-11-2003
 
Location ku po me bje udha

 

 Member Is Offline
 

 

 M
Read the entire article....