Académique Documents
Professionnel Documents
Culture Documents
Figure 1: 3D Rotation of a vector p by the angle with the axis n. 7. Fill in the blanks (Equations (5), (6), and (8), and the expressions between Equations (6) and (7). Dont pay attentaion to the number of =. If you need, you can increase its number.) First of all, lets look into the angular displacement. We can calculate a vector Rp when a vector p is rotated by the angle with the axis n. n p = (p n)n = pn = p (p n)n (1) (2)
A vector p is orthogonal to vectors n and p at the same time. p = n p = n p A vector p will become Rp = Rp n after it is rotated. Rp = cos p + sin p Therefore, we can derive Rp as followings: Rp = = = = n + Rp (4) (3)
(5)
Equation (5) is the angular displacement, which is the formula for rotating a vector p by angle with the axis n. Now let an unit quaternion q = (s, v). Because q is an unit quaternion, |q|2 = q q = s2 + v2 = 1. Since cos2 + sin2 = 1, we can express q = (cos , sin ), where n is an unit vector (| | = 1). As we studied in n n last class, Rp = qp, where p is a quaternion p = (0, p). q qp = (s, v)(0, p)(s, v) q = ( , )( , ) = (, ) 2 (6)
0,
= = = = = (s2 v v)p + 2(v p)v + 2s(v p). Therefore, qp = (0, (s2 v v)p + 2(v p)v + 2s(v p)). q Now we substitue s = cos and v = sin . n qp = q = = (7)
(8)
Compared with Equation (5), the imaginary part of Equation (8) shows the result of rotating p by angle 2 about the axis n.