You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
window.addEventListener("mousemove",(evt)=>{ //captura posicion del mouse
posx_mouse=evt.clientX
posy_mouse=evt.clientY
const rot=Math.atan2(posy_mouse,posx_mouse) * 180/Math.PI //retorn arcotangente(angulo en radianos) de 2 coeficientes, x e y. El 180 y el PI lo convierte para angulo.