To rotate a point 90 degrees counterclockwise our point (x,y) or (a,b) becomes (-y, x) or (-b, a). In other words, we have to switch x and y and make y negative.
1.6m questions
2.0m answers