Update grid rotation calculation scheme.
Only calculate rotation, when alpha is not equal to zero. This should reduce numerical errors when no rotation is to be applied.