[Fix] Rotations for arbitrary boxsizes.