Rotating a point around the orgin?

180 Views Asked by At

Can some explain how to calculate how to rotate point (x,y) n radians around the orgin clockwise or counterclockwise?

2

There are 2 best solutions below

0
On

I suppose we have $(x,y) \in \mathbb{R^2}$. We can multiply it by the rotation matrix $ \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin\theta & \cos\theta \end{pmatrix}$ to make it rotate through an angle $\theta$ (in radians) counter-clockwise about the origin.

0
On

By multiplication by the rotation matrix: $$\pmatrix{\cos\alpha& -\sin\alpha\\ \sin\alpha& \cos\alpha}\cdot\pmatrix{x\\y}.$$ This yields to the point $(\cos\alpha\cdot x-\sin\alpha\cdot y,\ \sin\alpha\cdot x+\cos\alpha\cdot y)$.