Finding the change in position and angle after moving the rectangle

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
junseok Lee
Messages
3
Reaction score
1
TL;DR
Finding the change in position and angle after moving the rectangle
image.PNG

I am curious about how to approach the problem mathematically, so I write.

There are 4 dots on the square and I know the location.

The rectangle moves and the positions and angles of the four points change.

I also know the location of the four points that have changed.

I don't know the changed angle.

How can I find the angle and value to move to the initial position?

I would like to know the calculation of the angle and position values required for the rectangle to return to its original position.

Please advise.
 
Physics news on Phys.org
jedishrfu said:
Can you provide some context for this question?

Is this for a video game or web page image transformation?
I want to correct the position by checking the position of the tray with the camera.
 
Draw a line between X1,Y1 and X2,Y2. Draw the line between the same points of the moved rectangle. Find the angle between the two lines. This is very simple with vectors.

The change in position depends on how and when you do the rotation.
 
mfb said:
Draw a line between X1,Y1 and X2,Y2. Draw the line between the same points of the moved rectangle. Find the angle between the two lines. This is very simple with vectors.

The change in position depends on how and when you do the rotation.
Thanks for your help.
Thanks to you, I was able to solve it simply.
 
  • Like
Likes   Reactions: mfb