Archived

This topic is now archived and is closed to further replies.

Rotation Matrix

This topic is 5763 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Can someone explain how to find the nearest rotation matrix for a given 3x3 matrix.

Share on other sites
what ??

a 3x3 matrix IS a rotation matrix !

what is this question ? I dont understand..

Share on other sites
the nearest Correct matrix(as in it has rotation matrix properties - like its tranpose is its inverse)

Share on other sites
Look up the "Gram Schmidt algorithm" for orthonormalising any basis. Treat the rows (or the columns) as the basis vectors. The order in which you pick the first base vector will affect the final outcome though, the first one is unchanged (except that is normalised). You could calculate all possible bases produced by the algorithm, you''d have to do it 6 times though (once for each ordering of the input base vectors). Then pick the matrix which, when subtracted from the original, has least (modulus of the) determinant, i.e. min(abs(det( B_out - B_in ))).

Any orthonormal basis has the properties you describe (transpose is it''s inverse). You may need to check that the final matrix has determinant +1 rather than -1 though, otherwise you get a reflection as well (so you need to reverse one of the output base vectors).

"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

1. 1
Rutin
32
2. 2
3. 3
4. 4
5. 5

• 13
• 9
• 9
• 9
• 14
• Forum Statistics

• Total Topics
633322
• Total Posts
3011354
• Who's Online (See full list)

There are no registered users currently online

×