Step 1:  (x,y)→(y,−x). ( x , y ) → ( y , − x ) A 90-degree clockwise rotation will provide the same outcome as a 270-degree counterclockwise rotation. Step 2: Rotate the rectangle by following the 90-degree clockwise rule for each point.