Use our implementation of atan2 in AI routines as profiling shows these are hotspots and (for these cases) our implementation is much faster.