152k views
0 votes
Write a function to represent the point rotated counterclockwise about the origin.

Write a function to represent the point rotated counterclockwise about the origin-example-1
User Dodi
by
3.6k points

1 Answer

5 votes

If you have a point (x,y) and want to rotate 90 degrees counterclockwise the point becomes

(x,y) becomes (-y,x)

User Nissan
by
3.4k points