How can I rotate a shape in 2D space?

AI Thread Summary
To rotate a shape in 2D space, one must use a rotation matrix that involves the cosine and sine of the desired angle, theta. The transformation is expressed as [x'; y'] = [cos(theta) sin(theta); -sin(theta) cos(theta)][x; y]. Before applying this formula, it's essential to clarify how the shape is encoded and represented in terms of its position and angle. Understanding the unit circle concept can aid in visualizing the rotation process. Properly encoding the shape's information is crucial for accurate rotation.
fcs04001
Messages
3
Reaction score
0
How do I rotate some shape in 2d space? That is, what factor do I multiply the x and y components to rotate my shape?

Thanks.
 
Physics news on Phys.org
fcs04001 said:
How do I rotate some shape in 2d space? That is, what factor do I multiply the x and y components to rotate my shape?

Thanks.

Sin of (y) and Cos of (x)

Think of a unit circle ( a cicle of Radius 1 around the origin)
 
Before we can answer that unambiguously, you must first of all explain how you "encode" your shape, that is: how you store the information about your shape and how you "draw" it, or specify its position and angle.

--------
Assaf
http://www.physicallyincorrect.com/"
 
Last edited by a moderator:
I got it:
[x'; y'] = [cos(theta) sin(theta); -sin(theta) cos(theta)][x; y]

Thanks.
 
Hi there, im studying nanoscience at the university in Basel. Today I looked at the topic of intertial and non-inertial reference frames and the existence of fictitious forces. I understand that you call forces real in physics if they appear in interplay. Meaning that a force is real when there is the "actio" partner to the "reactio" partner. If this condition is not satisfied the force is not real. I also understand that if you specifically look at non-inertial reference frames you can...
This has been discussed many times on PF, and will likely come up again, so the video might come handy. Previous threads: https://www.physicsforums.com/threads/is-a-treadmill-incline-just-a-marketing-gimmick.937725/ https://www.physicsforums.com/threads/work-done-running-on-an-inclined-treadmill.927825/ https://www.physicsforums.com/threads/how-do-we-calculate-the-energy-we-used-to-do-something.1052162/
I have recently been really interested in the derivation of Hamiltons Principle. On my research I found that with the term ##m \cdot \frac{d}{dt} (\frac{dr}{dt} \cdot \delta r) = 0## (1) one may derivate ##\delta \int (T - V) dt = 0## (2). The derivation itself I understood quiet good, but what I don't understand is where the equation (1) came from, because in my research it was just given and not derived from anywhere. Does anybody know where (1) comes from or why from it the...
Back
Top