Counterclockwise in math most likely relates to something being negative mean while clockwise most likely relates to something being positive. So if were making a 90 degree turn counterclockwise(negative) then all we need to do is flip the x and y cordinants and make them negative to put it simply.