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
(𝑦,−𝑥).