Rotate vertically and horizontally.