views:

53

answers:

3

I would like to rotate a plane, not around a single (X or Y) axis, but around the diagonal (45 degrees between X and Y). How do I calculate the Rx and Ry given the Rdiagonal?

(Rdiagonal is the amount of rotation I would like to achieve around the diagonal axis).

To clarify: just take a yellow PostIt and draw cross on it (a horizonal and a vertical line). These are the X and Y axes. Rotating around these axes is easy (assuming you can just specify Rx and Ry). But I would like to rotate around the diagonal axis. What are the Rx and Ry in that case?

I think it's something like Rx = Rdiagonal / sqrt(2). But I'm not sure.

A: 

This is probably more of a mathoverflow question, but I found some information here about rotation around an arbitrary axis. It provides the derivation for the translation and rotation matrices.

Vivin Paliath
MathOverflow would probably consider this question too easy and would close it.
Brian
Indeed, MathOverflow is only for "research level math questions" :(
Joey Adams
Ah, I didn't know that!
Vivin Paliath
A: 

Your plane will most certainly given by some points (depending on the dimensionality). You can then use a rotation matrix to transform these points: new = R * old. Afterwards, construct your plane from these points.

To get the right rotation matrix, see the entry at wikipedia.

bayer
-1 for misleading link. And I don't think this is a good MathOverflow question. Too easy.
Brian
Woah, I intended to put a wikipedia link there.
bayer
A: 

See HERE.

John R. Strohm