Re: [Interest] Add extra rotation to a quaternion

2020-04-05 Thread Rainer Wiesenfarth
On Sun, Apr 5, 2020 at 11:04 AM Megidd Git wrote: > Hi! > I have a QQuaternion like: > QQuaternion(scalar:0.707107, vector:(0, 0, 0.707107)) > I want to add this extra rotation to my quaternion: > Rotation around point QVector3D(34.5, -40, 7.16294) in XY

Re: [Interest] Add extra rotation to a quaternion

2020-04-05 Thread Marian Beermann
Hi, convert your rotation to a quaternion and multiply both quaternions to get a quaternion representing both rotations. Note that quaternion multiplication is not commutative. See these links for some handy explanations and shortcuts https://www.euclideanspace.com/maths/geometry/rotations/conver

[Interest] Add extra rotation to a quaternion

2020-04-05 Thread Megidd Git
Hi! I have a QQuaternion like: QQuaternion(scalar:0.707107, vector:(0, 0, 0.707107)) I want to add this extra rotation to my quaternion: Rotation around point QVector3D(34.5, -40, 7.16294) in XY plane by 180° I don't know how to convert my extra rotati