Interpolation Axis for two Matrices

Click For Summary
SUMMARY

This discussion focuses on the mathematical approach to finding the rotation axis between two orthogonal 3D matrices, R_1 and R_2, which represent coordinate systems of the same handedness. The key conclusion is that the vector representing the rotation axis is an eigenvector of the rotation matrix R_3, derived from the equation R_2 R_1^{-1} = R_3. Additionally, the discussion highlights methods for calculating the angle of rotation using a perpendicular unit vector and the trace of the rotation matrix to derive the angle theta.

PREREQUISITES
  • Understanding of 3D orthogonal matrices
  • Familiarity with eigenvectors and eigenvalues
  • Knowledge of matrix inversion techniques
  • Basic concepts of rotation in linear algebra
NEXT STEPS
  • Research methods for calculating eigenvectors of rotation matrices
  • Learn about the properties of orthogonal matrices and their inverses
  • Explore computational techniques for matrix inversion beyond row reduction
  • Study the relationship between the trace of a matrix and its eigenvalues
USEFUL FOR

Mathematicians, computer graphics developers, and anyone involved in 3D transformations and linear algebra applications.

Dissident Dan
Messages
236
Reaction score
1
If you have two standard 3d, orthogonal matrices representing axes of 3d coordinate systems of the same handedness, is it possible to find the vector about which you would rotate one of the matrices to get the other?

If so, this would be a lot more intuitive than quaternions (at least for me) for programming a computer to do 3d tranformation interpolation.
 
Physics news on Phys.org
Did you get the crown in a Maxim magazine?
 
LOL, I was expecing something substantive, and I got that.

No, it is not from a magazine.
 
So, it seems you have R_2 = R_3 R_1, where R_1 and R_2 are given orientation-preserving rotation matrices.
Solving for the unknown, R_2 R_1^{-1}=R_3.
When you rotate about an axis, you leave it unchanged.
So, the vector you seek is an eigenvector of R_3 (with eigenvalue 1). (This might be easier if you can take advantage of the fact R_3 is a rotation.)
 
K. It's the Burger King crown though, isn't it?
 
robphy said:
So, it seems you have R_2 = R_3 R_1, where R_1 and R_2 are given orientation-preserving rotation matrices.
Solving for the unknown, R_2 R_1^{-1}=R_3.
When you rotate about an axis, you leave it unchanged.
So, the vector you seek is an eigenvector of R_3 (with eigenvalue 1). (This might be easier if you can take advantage of the fact R_3 is a rotation.)

Wow. This is the same exact method that a co-worker and I discussed earlier today.

Thanks for the reply.
 
quasar987 said:
K. It's the Burger King crown though, isn't it?

Yes, it is. However, I modified it to say "Veggie King" and slapped a BK Veggie sticker on it. (I don't eat animals.)
 
OK, I have a few more questions. This thread is becoming part programming, part linear & matrix algebra.

A) The only method that I can remember for finding the inverse of a matrix by reducing the matrix to the identity (row or column echelon) and applying the same row or coumn transformations to the identity. Is there a computationally faster method of doing this? Can one exploit the fact that 3x3 rotation matrix is composed of all orthogonal vectors to simplify the calculation?

Once I have the matrix R_3 (which transforms R_1 into R_2) and the axis of rotation, I have the following method in mind for finding the angle of rotation about the axis:

1) Pick a unit vector V that is perpendicular to the axis
2) Multiply V by R_3 to get a new, rotated vector V_2
3) Calculate the angle between V and V_2 using acos(V dot V_2) (this limits the range to [0,PI])

B) Do you see any problems with doing it this way? Is there a better (computationally faster or otherwise) method for doing this?
 
http://mathworld.wolfram.com/OrthogonalMatrix.html

So, if A is an orthogonal matrix, then inverse(A)=transpose(A).

Next, suppose you found the eigenvector of R3 (with eigenvalue 1).
If you express R3 in a basis that includes your eigenvector, then
your rotation matrix would have a diagonal with entries 1,cos(theta),cos(theta).
The trace of R3 (the sum of the diagonals) in this basis is equal to its trace in the original basis. So, without chaging bases, trace(R3)=1+2cos(theta). Solve for theta.

After googling, the following URL suggests a more efficient method
http://www.math.niu.edu/~rusin/known-math/97/rotations
 
Last edited by a moderator:

Similar threads

  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 4 ·
Replies
4
Views
8K
Replies
3
Views
3K