Optimization of rotate (less cos/sin calcul) + multiple cast test for better precision