24.6k views
1 vote
Write a function for a rotation 90 degrees counter clockwise about the origin, point 0

1 Answer

4 votes

Answer:

90° counter clockwise rotation of point 0(x, y) about origin = (-y, x)

Explanation:

Following are the rules for a counter clockwise rotation of 90 degrees about the origin for a point O(x,y):

1. Invert the sign of the value of y.

2. Switch x and y with each other.

For example, a point A(5,2) after rotation gives a point B(-2,5) using the rules given above. The points on the x-y plane are shown in the image attached.

Write a function for a rotation 90 degrees counter clockwise about the origin, point-example-1
User Adamax
by
4.9k points