Hi again friends. I need your math help again. Now it is about quaternions.
First, i don't understand quaternions well. I know they have 4 parameters: a vector and a scalar indicating the rotation in 3d space.
I don't need to understand them perfectly, but i need to know how to do some operations with them:
I want to compare 2 quaternions, to know how much different they are.
For example, if i had euler rotations, i could compare every angle (pitch,yaw,roll) just with abs(r1#-r2#) so i know the difference in every angle.
But what about quaternions?.
What i need is to compare two rotations in quaternions and update the second if they are different enough...
First, i don't understand quaternions well. I know they have 4 parameters: a vector and a scalar indicating the rotation in 3d space.
I don't need to understand them perfectly, but i need to know how to do some operations with them:
I want to compare 2 quaternions, to know how much different they are.
For example, if i had euler rotations, i could compare every angle (pitch,yaw,roll) just with abs(r1#-r2#) so i know the difference in every angle.
But what about quaternions?.
What i need is to compare two rotations in quaternions and update the second if they are different enough...