Improve rotationTo

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
Merge pull request #535 from DDoSQc/master

Improve rotationTo