I just dig a bit deeper in use of quaternions in 3D game programming (Yes, I know about matrices and they are OK, but we always have to learn some new things), so, we can rotate some object like this Pout = q*Pin*conjug(q)
, where are q is quaternion, Pin is an object of(let's say we are using some framework, where this class is defined for us) the Vector3 class, conjug(q)
is the q quaternion after the its conjugating and, finally, Pout
is the new Vector3's object, which we got after the rotation initial Vector3's object Pin
by some angle alfa(or theta, whatever you like). Also, I know there is a way to combine rotations, like so: q_final = q2*q1
(this represents rotating by the alfa1 and then by the alfa2 angles). And, finally, dot product represents the angle between 2 quaternions in, let's say, sphere. This is clear for me. My question will concern such things as division, adding and subtracting.
My question is: Could anybody tell me, please, what are they(division, adding, subtracting -operations on quaternions) representing in a 3D programming? How they will affect on 3D model?
Thank you beforehand for your answers.
p.s. If you (DarenW, bensiu, Dharmendra, Uwe Keim, Jennis) can't understand this question, please, leave this topic. Someone might have an answer. Thank you.