free templates & logo for you
Our web spider found the following code snippet at sutinevis_persianblog_com and contains information about atan2 and JavaScript.
atan2(ay1,ax1)*180/Math.PI; 
ay2 = ym+sy - c2y; 
ax2 = xm - c2x; 
angle2 = Math.atan2(ay2,ax2)*180/Math.PI; 
dv=1.7; 

p1temp.top=(d1 < 17)?(c1y-6+d1/dv*Math.sin(angle1*Math.PI/180)):(c1y-6+10*Mat
h.sin(angle1*Math.PI/180)); 

p1temp.left=(d1 < 17)?(c1x-6+d1/dv*Math.cos(angle1*Math.PI/180)):(c1x-6+10*Ma
th.cos(angle1*Math.PI/180)); 

p2temp.top=(d2 < 17)?(c2y-6+d2/dv*Math.sin(angle2*Math.PI/180)):(c2y-6+10*Mat
h.sin(angle2*Math.PI/180)); 

p2temp.left=(d2 < 17)?(c2x-6+d2/dv*Math.cos(angle2*Math.PI/180)):(c2x-6+10*Ma
th.cos(angle2*Math.PI/180)); 
function move(){ 
if (ie)ic.style.top=document.body.scrollTop; 
dy=fy+=(ym-fy)*0.12-2; 
dx=fx+=(xm-fx)*0.12; 
makefollow(); 
setTimeout('move()',10); 
window.onload=move; 
//-->
Read the entire article....