- #1
IgF
- 3
- 0
Homework Statement
Hi, I have just started learning quarternions and I understand all the simple stuff like adding/subtracting, multiplication, inverse, magnitude and finding the complex conjugate but now I am trying to get my head around rotation and I can't seem to get anywere. So below is the question and then i'll show what I have found (im certain it is very wrong ).
I haven't yet tried to find the induced matrix as I am really unsure of this so any knowledge on that would also be very much appreciated. Sorry for the length but thanks in advance to anyone that can offer assistance.Create the view quaternion, V. The x, y, z, components are taken from the
“lookat” vector.
The scalar (real) component of the quaternion V is 0, hence this is a pure
quaternion.
Let “lookat” = < 0, 0, 1 >
Rotate the quaternion V by the following axis and angle.
Axis = < 0, 1, 0 >
Angle = pi / 4
You will need to encode the axis and angle in a quaternion, R. Find R.
Rotate the quaternion V by R, and hence find the resulting rotation W.
Where W = RVR*
Create the new “lookat” vector by getting the x, y, z, components form the
resulting W quaternion.
What is the resulting “lookat” vector?
Find the induced matrix for R.
The Attempt at a Solution
quarternion V = 0 + 0i + 0j + 1k
R =
(cos(45 / 2) + sin(45 / 2)0) = 0
(cos(45 / 2) + sin(45 / 2)1) = 1.3066
(cos(45 / 2) + sin(45 / 2)0) = 0
R = 0 + 0i + 1.3066j + 0k
W = RVR*
W = 0 + 0i + 0j - 1.705k
'look at' vector = < 0, 0, -1.71>
Last edited: