Given that the line x = 2Y + 2, how can we know the linear equation that the line rotates 90 degrees (such as counterclockwise), if we can, rotate any angle

Given that the line x = 2Y + 2, how can we know the linear equation that the line rotates 90 degrees (such as counterclockwise), if we can, rotate any angle

This depends on the point as the center to rotate a certain angle. After knowing this point, calculate the slope after rotation, and write the linear equation in the oblique form