Faster atan2 function for speed