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.
9.3m questions
12.0m answers