Conversion between quaternions and Euler angles: Difference between revisions

Content deleted Content added
Miki88 (talk | contribs)
Cewbot (talk | contribs)
m Fix broken anchor: #Conjugation.2C the norm.2C and reciprocal→most alike anchor Quaternion#Conjugation, the norm, and reciprocal
Line 252:
Note that the canonical way to rotate a three-dimensional vector <math>\vec{v}</math> by a quaternion <math>q</math> defining an [[Conversion between quaternions and Euler angles#Conversion|Euler rotation]] is via the formula
:<math>\mathbf{p}^{\,\prime} = \mathbf{qpq}^\ast</math>
where <math>\mathbf{p} = (0,\vec{v}) = 0+iv_1+jv_2+kv_3</math> is a quaternion containing the embedded vector <math>\vec{v}</math>, <math>\mathbf{q}^\ast=(q_0,-\vec{q})</math> is a [[Quaternion#Conjugation.2C, the norm.2C, and reciprocal|conjugate quaternion]], and <math>\mathbf{p}^{\,\prime} = (0,\vec{v}^{\,\prime})</math> is the rotated vector <math>\vec{v}^{\,\prime}</math>. In computational implementations this requires two quaternion multiplications. An alternative approach is to apply the pair of relations
:<math>\vec{t} = 2\vec{q} \times \vec{v}</math>
:<math>\vec{v}^{\,\prime} = \vec{v} + q_0 \vec{t} + \vec{q} \times \vec{t}</math>