How can I rotate a shape in 2D space?

  • Context: High School 
  • Thread starter Thread starter fcs04001
  • Start date Start date
  • Tags Tags
    Rotating Shape Space
Click For Summary

Discussion Overview

The discussion revolves around the methods for rotating a shape in 2D space, focusing on the mathematical factors involved in the rotation process and the representation of the shape's position and angle.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant asks how to rotate a shape in 2D space and what factors to use for the x and y components.
  • Another participant suggests using the sine and cosine functions related to a unit circle to facilitate the rotation.
  • A third participant emphasizes the need to clarify how the shape is encoded, including how its information is stored and how its position and angle are specified.
  • A later reply provides a rotation transformation matrix, indicating how to calculate the new coordinates after rotation.

Areas of Agreement / Disagreement

The discussion does not reach a consensus, as participants present different aspects of the problem, including the mathematical approach and the representation of the shape.

Contextual Notes

There is a lack of clarity regarding the specific encoding of the shape and the assumptions about the rotation angle and its application.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 38 ·
2
Replies
38
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 47 ·
2
Replies
47
Views
5K