Lin algebra rotation difficault stuff

  • Thread starter Thread starter cleopatra
  • Start date Start date
  • Tags Tags
    Algebra Rotation
Click For Summary
SUMMARY

The discussion focuses on constructing a matrix for a counterclockwise rotation of 70° about the point (2,5) using homogeneous coordinates. The correct approach involves creating three matrices: a translation matrix to move (2,5) to (0,0), a rotation matrix for 70 degrees, and a translation matrix to return to (2,5). The final transformation is achieved by multiplying these matrices in the order CBA. Additionally, the point (8,7) is represented in homogeneous coordinates as [8, 7, 1], which is essential for applying the transformation.

PREREQUISITES
  • Understanding of homogeneous coordinates in 2D transformations
  • Knowledge of matrix multiplication and properties
  • Familiarity with rotation matrices and trigonometric functions
  • Basic concepts of translation matrices in linear algebra
NEXT STEPS
  • Study the construction of translation matrices in homogeneous coordinates
  • Learn about rotation matrices and their applications in computer graphics
  • Explore the concept of Rational Trigonometry for alternative coordinate systems
  • Practice matrix multiplication with multiple transformation matrices
USEFUL FOR

Students and professionals in mathematics, computer graphics developers, and anyone interested in linear transformations and matrix operations.

cleopatra
Messages
45
Reaction score
0

Homework Statement



1) Find a a matrix for counterclockwise rotation 70° about the point (2,5) and use homogeneous coordinates.
2) Then, use that matrix to find out where the point (8,7) projects.

Homework Equations





The Attempt at a Solution


1) [cos() -sin() 0 ; sin() cos() 0 ; 0 0 1] * [1 0 -2; 0 1 -5] = ...

2) Multiply what I get in one by [8, 7, ?]

or what?
 
Physics news on Phys.org
how can we use 3x3 matrices acting on augmented vectors in R^3 to represent transformations in R^2? your rotation matrix is correct, but you'll need to fix your translation matrix and fix the vector these act on. hint:think consistency! perform your (corrected) translation matrix on an arbitrary vector in R^3, what form do you need on this vector to get a good result?
 
You really need to do three things:
1) translate the point (2,5) to (0,0)
2) rotate about (0,0) 70 degrees
3) translate (0,0) back to 2,5).

In homogeneous coordinates, the point (a, b) is represented by the array [a, b, 1] with the understanding that any multiple, [sa, sb, s], is equivalent to the point (a,b). That is, if the third component is not 1, divide the entire array by that component to get the point.

The advantage of homogenous coordinates (they are used a lot in computer graphics) is that you can represent translation as a matrix multiplication. For example:
\begin{bmatrix}1 & 0 & a \\ 0 & 1 & b\\ 0 & 0 & 1\end{bmatrix}\begin{bmatrix}x \\ y \\ 1\end{bmatrix}= \begin{bmatrix}x+ a \\ y+ b \\ 1\end{bmatrix}.

Of course, rotation around the origin, by \theta degrees, is given by
\begin{bmatrix}cos(\theta) & -sin(\theta) & 1 \\ sin(\theta) & cos(\theta) & 0 \\ 0 & 0 & 1\end{bmatrix}.

To solve this problem you need to construct three matrices: the matrix, A, that translates (2, 5) to (0, 0), the matrix, B, that rotates 70 degrees around (0,0), and the matrix, C, that translates (0, 0) to (2, 5) (It will, of course, be the inverse of the matrix A). Finally multiply the matrices in order CBA.

The point (8, 7) is represented by the array [8, 7, 1].
 
Last edited by a moderator:
Are you sure there´s supposed to be 1 at the top in the right?
not zero?


I already did the translation and have [x+2; y+5; 1]

What do I do next?
 
Its also useful to think about rotations rationally, instead of with cos and sin, which don't usually give exact values. Use the fact that a point on the circle can be better coordinatized often with [(1-t^2)/(1+t^2),2t/(1+t^2)].

This also connects with Rational Trigonometry.
 

Similar threads

Replies
4
Views
2K
Replies
8
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
9K
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
2
Views
2K