Re: Angle calculation from 3x3 matrix and 3x1 vector



In article <MPG.2305070de00f851e9896af@xxxxxxxxxxxxxx>, none@xxxxxxxx
says...
A vector does not have an orientation around itself. You need another
vector to give that. If you have a perpendicular n to the vector x, then
you can measure the rotation around vector x:

n' = (A^-1)^T n,

where ^-1 is for matrix inverse, ^T is for transpose. If A is a rotation
matrix (A^T = A^-1), then simply n' = A n.

cos(angle) = dot(n, n') / |n||n'|

Sorry, too fast typing, the last equation is incorrect.

First compute

p = n' - [dot(x, n') / dot(x, x)] x

Then

cos(angle) = dot(n, p) / |n||p|

This should do it.
.



Relevant Pages

  • Re: Fudge Factors and a new physics.
    ... you do a rotation you'd like the distance to be unchanged. ... So don't torture your brain in trying to put four axes perpendicular. ... perpendicular to that space (what is a little bit difficult to imagine, but try to think about those space axes to be squeezed flat and the timeline perpendicular). ...
    (sci.physics.relativity)
  • Re: Rotation matrix
    ... sin @ cos @ 0 ... axis of rotation. ... reflect through any vector p that is perpendicular to ...
    (sci.math)
  • Re: Bare copper wire ???
    ... blade is set at an angle to the axis of rotation, rather than perpendicular. ... It's used by simply twisting the tool down the cable ...
    (uk.rec.models.engineering)
  • Re: All ukrm-ers are now US criminals - official
    ... or whirl around perpendicular to the axis of rotation? ...
    (uk.rec.motorcycles)
  • Re: Angle calculation from 3x3 matrix and 3x1 vector
    ... If you have a perpendicular n to the vector x, ... you can measure the rotation around vector x: ... where ^-1 is for matrix inverse, ^T is for transpose. ...
    (comp.graphics.algorithms)

Loading