how to do a 90 degree rotation with x, y – Google Search

December 9, 2025

https://www.google.com/search?q=how+to+do+a+90+degree+rotation+with+x%2C+y&oq=how+to+do+a+90+degree+rotation+with+x%2C+y&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIHCAIQIRigATIHCAMQIRigATIHCAQQIRigATIHCAUQIRiPAjIHCAYQIRiPAtIBCTE0MTA4ajBqNKgCALACAfEF6TlBym5s-tk&sourceid=chrome&ie=UTF-8

To do a 90-degree rotation on a point
(x,y)open paren x comma y close paren
(π‘₯,𝑦) about the origin, you swap the coordinates and change the sign of one, depending on the direction: for counter-clockwise, the new point is
(βˆ’y,x)open paren negative y comma x close paren
(βˆ’π‘¦,π‘₯); for clockwise, the new point is
(y,βˆ’x)open paren y comma negative x close paren
(𝑦,βˆ’π‘₯).