Rotation around an arbitrary point

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Point Rotation
Click For Summary
SUMMARY

The discussion focuses on the process of rotating the point (10, 11) by an angle of π/3 around the point P=(-1, -1). The correct sequence involves translating the point to the origin, applying the rotation matrix, and then translating back. The initial translation was incorrectly calculated; the point should first be translated to (11, 12) before applying the rotation matrix. The final coordinates after rotation and translation are (4 - (11√3)/2, 5√3 + 9/2).

PREREQUISITES
  • Understanding of 2D coordinate transformations
  • Familiarity with rotation matrices
  • Knowledge of vector translation in a Cartesian plane
  • Basic trigonometry, specifically sine and cosine functions
NEXT STEPS
  • Study the derivation and application of rotation matrices in 2D
  • Learn about vector translation and its geometric implications
  • Explore transformations in computer graphics, focusing on rotation and translation
  • Investigate the use of homogeneous coordinates for transformations
USEFUL FOR

Mathematicians, computer graphics developers, and anyone interested in geometric transformations and vector mathematics.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

I want to rotate the point $(10, 11)$ with rotation angle $\frac{\pi}{3}$ around the point $P=(-1,-1)$.

I have done the following:
  • We translate about $-\vec{OP}$: \begin{equation*}P'=(-1\mid -1)-(-1\mid -1)=(0\mid 0)\end{equation*}
  • We rotate around the origin: \begin{equation*}R_{\frac{\pi}{3}}\cdot \binom{10}{11}=\begin{pmatrix}\cos \frac{\pi}{3} & -\sin \frac{\pi}{3} \\ \sin \frac{\pi}{3} & \cos\frac{\pi}{3}\end{pmatrix}\binom{10}{11}=\begin{pmatrix}\frac{1}{2} & -\frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & \frac{1}{2}\end{pmatrix}\binom{10}{11}=\begin{pmatrix}\frac{1}{2}\cdot 10 -\frac{\sqrt{3}}{2}\cdot 11 \\ \frac{\sqrt{3}}{2}\cdot 10 + \frac{1}{2}\cdot 11\end{pmatrix}=\begin{pmatrix}5 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{11}{2}\end{pmatrix}\end{equation*}
  • We translate about $\vec{OP}$ :
    \begin{equation*}\begin{pmatrix}5 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{11}{2}\end{pmatrix}+\begin{pmatrix}-1 \\ -1\end{pmatrix}=\begin{pmatrix}4 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{9}{2}\end{pmatrix}\end{equation*}

Therefore, the image of $(10\mid 11)$ is $\left (4 -\frac{11\sqrt{3}}{2}, 5\sqrt{3} + \frac{9}{2}\right )$. Is everything correct? Have I done the translation right? (Wondering)
 
Last edited by a moderator:
Physics news on Phys.org
mathmari said:
Hey! :o

I want to rotate the point $(10, 11)$ with rotation angle $\frac{\pi}{3}$ around the point $P=(-1,-1)$.

I have done the following:
  • We translate about $-\vec{OP}$: \begin{equation*}P'=(-1\mid -1)-(-1\mid -1)=(0\mid 0)\end{equation*}

This translation isn't quite right. You need to move the point $(10,11)$ thus:

$\displaystyle (10,11) \to (10,11) - (-1,-1) \to (11, 12)$. So you apply your rotation matrix to the point $(11,12)$. Does that make sense?

The other steps look right to me.

mathmari said:
  • We rotate around the origin: \begin{equation*}R_{\frac{\pi}{3}}\cdot \binom{10}{11}=\begin{pmatrix}\cos \frac{\pi}{3} & -\sin \frac{\pi}{3} \\ \sin \frac{\pi}{3} & \cos\frac{\pi}{3}\end{pmatrix}\binom{10}{11}=\begin{pmatrix}\frac{1}{2} & -\frac{\sqrt{3}}{2} \\ \frac{\sqrt{3}}{2} & \frac{1}{2}\end{pmatrix}\binom{10}{11}=\begin{pmatrix}\frac{1}{2}\cdot 10 -\frac{\sqrt{3}}{2}\cdot 11 \\ \frac{\sqrt{3}}{2}\cdot 10 + \frac{1}{2}\cdot 11\end{pmatrix}=\begin{pmatrix}5 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{11}{2}\end{pmatrix}\end{equation*}
  • We translate about $\vec{OP}$ :
    \begin{equation*}\begin{pmatrix}5 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{11}{2}\end{pmatrix}+\begin{pmatrix}-1 \\ -1\end{pmatrix}=\begin{pmatrix}4 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{9}{2}\end{pmatrix}\end{equation*}

Therefore, the image of $(10\mid 11)$ is $\left (4 -\frac{11\sqrt{3}}{2}, 5\sqrt{3} + \frac{9}{2}\right )$. Is everything correct? Have I done the translation right? (Wondering)
 
Ackbach said:
This translation isn't quite right. You need to move the point $(10,11)$ thus:

$\displaystyle (10,11) \to (10,11) - (-1,-1) \to (11, 12)$. So you apply your rotation matrix to the point $(11,12)$. Does that make sense?

Let $M$ be the point that we want to rotate. Do we have to translate the vector $\vec{PM}$ to the origin, so that it becomes a vector of the form $\vec{OM'}$, with $|\vec{PM}|=|\vec{OM'}|$ ? (Wondering)
 
mathmari said:
Let $M$ be the point that we want to rotate. Do we have to translate the vector $\vec{PM}$ to the origin, so that it becomes a vector of the form $\vec{OM'}$, with $|\vec{PM}|=|\vec{OM'}|$ ? (Wondering)

Exactly!
 
Ackbach said:
Exactly!

I got stuck right now. Why is the differnece $M-P$ a vector from the origin? (Wondering)
 
mathmari said:
I got stuck right now. Why is the differnece $M-P$ a vector from the origin? (Wondering)

Because if you move a vector around, keeping its length and direction the same, you have not changed the vector. The vector $M-P$ is precisely the vector you need to rotate. If you draw the points $M$ and $P$ on plot, and draw the vector from $P$ to $M$, then take that exact vector and translate it so that its tail is at the origin, you can then rotate it with the standard rotation matrices (which assume the tail of the vector to be rotated is already at the origin). Does that help?
 
Ackbach said:
Because if you move a vector around, keeping its length and direction the same, you have not changed the vector. The vector $M-P$ is precisely the vector you need to rotate. If you draw the points $M$ and $P$ on plot, and draw the vector from $P$ to $M$, then take that exact vector and translate it so that its tail is at the origin, you can then rotate it with the standard rotation matrices (which assume the tail of the vector to be rotated is already at the origin). Does that help?

So we have the following:

View attachment 6985

A vector i defined by its length and direction. We have the vector PM and the vector OA. We have created the vector OA so that it has the same length and direction as PM. Therefore, OA=PM. is it correct so far? (Wondering)

After the rotation we get the vector OB. Then we have to translate it. How do we do that? (Wondering)
 

Attachments

  • ve.png
    ve.png
    2.3 KB · Views: 123
mathmari said:
So we have the following:



A vector i defined by its length and direction. We have the vector PM and the vector OA. We have created the vector OA so that it has the same length and direction as PM. Therefore, OA=PM. is it correct so far? (Wondering)

After the rotation we get the vector OB. Then we have to translate it. How do we do that? (Wondering)

By doing this:

mathmari said:
  • We translate about $\vec{OP}$ :
    \begin{equation*}\begin{pmatrix}5 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{11}{2}\end{pmatrix}+\begin{pmatrix}-1 \\ -1\end{pmatrix}=\begin{pmatrix}4 -\frac{11\sqrt{3}}{2} \\ 5\sqrt{3} + \frac{9}{2}\end{pmatrix}\end{equation*}
 
Ackbach said:
By doing this:
Ah ok! Thank you very much! (Smile)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
31
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
1K