[ODE] vector to matrix math
Pawel S
unixbird at yahoo.se
Sun Aug 21 13:38:01 MST 2005
Hello everyone!
I have a mathematical problem not related to ODE.
I need to find out the 3x3 matrix that represents the orientation of a
vector. This vector is the direction of a thrust vector from a thruster.
The matrix is needed in order to correctly represent the exhaust flame
graphically.
For exemple the direction down = cVector( 0.0, -1.0, 0.0 ) could be
represented by the matrix:
1.0, 0.0, 0.0
[ 0.0, 1.0, 0.0 ] = the identity matrix
0.0, 0.0, 1.0
and the direction cVector( 1.0, 0.0, 0.0 ) could be represented by the
matrix:
0.0, 1.0, 0.0
[ -1.0, 0.0, 0.0 ]
0.0, 0.0, 1.0
I appreciate any help.
Pawel S
More information about the ODE
mailing list