[Math] Rotation matrix between right- and left-handed systems, with an additional rotation

coordinate systemsgeometrylinear algebramatrices

I have two coordinate frames, A and B. I want to create the rotation matrix RAB which takes you from A to B. A is a right-handed system, and B is a left-handed system. Furthermore, after moving from a right- to a left-handed system, there is a further rotation. These two coordinate frames are illustrated in the image below.

As can be seen, it appears that the axes in B are simply the negative of the axes in A. So, my first attempt was to simply make these negative in the rotation matrix:

$$ R_{AB} = \left [\begin{array}{ccc}
-1 & 0 & 0 \\
0 & -1 & 0 \\
0 & 0 & -1 \\
\end{array} \right ]$$

However, after working through some examples, this did not work out.

Please could somebody answer either (or both!) these questions?

(a) Why does my above solution not hold?

(b) What is the correct rotation matrix RAB?

enter image description here

Best Answer

(a) I would need to see the examples

(b) First by the displayed coordinates: \begin{align} B &= T_{AB} A \iff \\ \left( \begin{matrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & -1 & 0 \end{matrix} \right) &= T_{AB} \left( \begin{matrix} -1 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 1 & 0 \end{matrix} \right) \iff \\ \end{align} \begin{align} T_{AB} &= \left( \begin{matrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & -1 & 0 \end{matrix} \right) \left( \begin{matrix} -1 & 0 & 0 \\ 0 & 0 & -1 \\ 0 & 1 & 0 \end{matrix} \right)^{-1} \\ &= \left( \begin{matrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & -1 & 0 \end{matrix} \right) \left( \begin{matrix} -1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & -1 & 0 \end{matrix} \right) \\ &= \left( \begin{matrix} -1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & -1 \end{matrix} \right) \end{align} Second by noting $B = -A$: $$ T_{AB} = B A^{-1} = -A A^{-1} = - E $$

Note: This is actually a reflection (determinant $-1$).