How to rotate a triangle in an equation

  • Thread starter Thread starter tomallan
  • Start date Start date
  • Tags Tags
    Rotate Triangle
Click For Summary
To rotate a triangle defined by specific equations around its centroid at (0,0), one must apply a rotation transformation to the coordinates. The correct method involves using rotation matrices rather than simple multiplication by cosine or sine, which would incorrectly scale the triangle. The rotation matrix for an angle θ is given by: cos(θ) -sin(θ) / sin(θ) cos(θ). Applying this matrix to each vertex of the triangle will achieve the desired rotation without altering its size. Properly implementing this transformation will allow for accurate rotation of the triangle around its centroid.
tomallan
Messages
20
Reaction score
0
Hi,

i have a set of definition for a triangle shape:

-3/4<x<3/4

-x/sqrt(3) + sqrt(3)/4 < y < x/sqrt(3) +sqrt(3)/4

The centroid of this triangle is at 0,0

i want to rotate this triangle by a certain degree from the centroid but i am not sure how, because if i just multiply it by cos or sin of the angle, it will just become smaller.

any hints will be appreciated.
 
Mathematics news on Phys.org
Any point can be rotated around the origin by rotating the coordinate system.
PassiveActive.JPG
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K