javascript atan2

Math.atan2(y, x);
Friendly Hawk