485,069 views
31 votes
31 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 DeltaLima
by
3.2k points

1 Answer

14 votes
14 votes

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

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

User Seth Ladd
by
2.8k points