Include quaternion chirality in code?

I have quaternion data that I am trying to switch from the right Y-up coordinate space to the left Z-up coordinate space. It follows what I need to do switch the chirality.

The only information I can find is this

And I canโ€™t wrap my head around me.

Say I have my Quaternion like:

public static float[] quat= new float[4](0.70711,0.70711,0,0);

In C # code, how do I switch chirality?

I tried to negate the axis and simply replaced the values โ€‹โ€‹of Zand Y. I tried to multiply the quaternion by another quaternion equal to 90 degrees, as suggested in this link. and still see irregular rotations.

Thank.

0
source share
1 answer

, A X , Y , Z . B X , Y - Z . Y Z. ? q, A. r, B.

, , . Wikipedia , ฮธ (x, y, z),

q = cos (ฮธ/2) + sin (ฮธ/2) (xi + yj + zk)

? , , , . ,

cos (-ฮธ/2) + sin (-ฮธ/2) (xi + zj + yk)

( cos (x) = cos (-x)), . , a + bi + cj + dk, , a - bi - dj - ck .

+1

All Articles