added rotationTo utils function;