Coordinate systems
Started by Aug 16 2001 07:51 AM
,
5 replies to this topic
#2 Members  Reputation: 122
Posted 17 August 2001  10:23 AM
Everything you could want and more is at http://www.makegames.com/3drotation/, about halfway down the page.
(Important things to note are the 3D rotation matrix and how to combine translations and rotations...)
~ Dragonus
(Important things to note are the 3D rotation matrix and how to combine translations and rotations...)
~ Dragonus
#3 Members  Reputation: 122
Posted 17 August 2001  10:16 PM
Now I will work with formulas...
I have two 3dvectors (v1, v2) and two 4*4 matrices (m1, m2).
I apply the following calculations:
1.) v1*m1=v2
2.) v2*m2=v1
How do I calculate m2 by the given m1? You see m2 undos the transformation of v1 by m1.
I have two 3dvectors (v1, v2) and two 4*4 matrices (m1, m2).
I apply the following calculations:
1.) v1*m1=v2
2.) v2*m2=v1
How do I calculate m2 by the given m1? You see m2 undos the transformation of v1 by m1.
#5 Members  Reputation: 864
Posted 19 August 2001  07:47 PM
quote:
Original post by TerranFury
Given the following:
1.) v1*m1=v2
2.) v2*m2=v1
Simple algebra tells us this:
m2 = v1/v2
m1 = v2/v1
So, as you can see, m1 is the inverse of m2.
Your analysis is only true for scalar mathematics. However, it does lead to the correct result. I won't bother explaining why, but basically division is not defined for matrices.
It is correct to write
v2*m2 = v1
=>(v1*m1)*m2 = v1
=>v1*(m1*m2) = v1
which is only true if: m1*m2 = I (the identity matrix), and this is true if m2 = m1^{1}.
As to how you compute the inverse of a matrix... there are many methods. There was a good thread recently on this very topic that outlined peoples favourite matrix inversion techniques. One suggestion... avoid the Adjoint method.
Timkin
Edited by  Timkin on August 20, 2001 2:49:39 AM
#6 Members  Reputation: 122
Posted 20 August 2001  02:53 AM
Well, the two methods I do know of are like this: Let''s say...
The first way of doing this is by setting up the matrix [A  I] and then rowreducing it...
The part on the right half of the matrix when you''re done is A^1.
They have a closedequation way of doing it, but I don''t know the one for a 4x4 matrix.
Then there''s the adjoint. Kinda nasty on the math side, but it''ll be easier to code up on the computer side. Don''t remember it off the top of my head, but it''s not incredibly horrible as I remember...
Dragonus
Thought of the Moment
If F = ma, and Work = Fd, then does Work = mad?

The first way of doing this is by setting up the matrix [A  I] and then rowreducing it...

The part on the right half of the matrix when you''re done is A^1.
They have a closedequation way of doing it, but I don''t know the one for a 4x4 matrix.
Then there''s the adjoint. Kinda nasty on the math side, but it''ll be easier to code up on the computer side. Don''t remember it off the top of my head, but it''s not incredibly horrible as I remember...
Dragonus
Thought of the Moment
If F = ma, and Work = Fd, then does Work = mad?