Professional Documents
Culture Documents
Introduction
Quaternions are commonly used to represent rotations. They were introduced by William Hamilton (1805-1865) [1] Quaternions were conceived as Geometrical Operators A Complete Calculus of Quaternions was introduced by Hamilton [2]
q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q q r r s s q r s lim q 0 r 0 s 0 M dq dr ds
Denition of Vector
A Vector is a line segment with orientation Vector MN represents the relative position of point N with respect to point M
Create a Mathematical Concept to represent The RELATIONSHIP between two VECTORS. In the same way that a Vector represent The RELATIONSHIP between two POINTS.
q s q2 dh dq
dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy qrs r s s q r s 0 s 0 M dq dr ds
M V
N V
Unique Point N
Vector V and a Quaternion Q The application of the Quaternion over the Vector Results in a Unique Vector W
qrs q q r r s s q r s lim q 0 r 0 s 0 dq dr ds
Q V W
Quatenion Rationale
A vector is completly dened by Length Orientation In order to dene a vector in terms of another vector a Quaternion has to represent Relative Length Relative Orientaton
dq q dq q dq 1 dq q dq 1 Denition of Scalar q dq q dq 1 A Scalar is z f x as dened y f the The ratio betweenx y lengths of two PARALLEL vectors A and B qrs q q r r s s q r s lim q 0 r 0 s 0 dq dr ds
B A
S = Scale
It represents the RELATIVE LENGTH of one vector with respect to the other.
Note that in programming jargon scalar has mistakenly taken the place of real
S B
dy dq 1 q dq q dq 1 1 dq q dqDenition of a Versor q dq q dq 1 A Versor is dened as z f xy The quotient between x y non-parallel vectors of EQUAL LENGTH f two q r sA q q r r s s q r s lim q 0 r 0 s 0 dq dr ds
It represents the RELATIVE ORIENTATION of one vector with respect to the other.
10
dx dy dq 1 q dq q dq 1 Right Versors dq q dq 1 A Right Versor is a Versor that applies a 90 rotation q dq q dq 1 z f xy V f xy qrs q q r r s s q r s lim q 0 r 0 s 0 dq dr ds
12
dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
Composing Versors
A V3 V1 C
V3 V2 V1 Versor composition is the consecutive application of two versors operators. It is noted by the symbol
qrs q r r s s q r s r 0 s 0 dq dr ds
A B
V2
V1 C V2 V1 C V3 C
V2
A A
13
dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy qrs r r s s B q r s 0 s 0 dq dr ds
A B
A
V V V V
B A B
B 1
B
V V
1 is the INVERSION operator that inverts the direction of a vector. The double application of a right versor to a vector, inverses the vector.
14
Denition of Quaternion
A B A Quaternion is the Geometrical Quotient of two vectors A and B A A Quaternion is an operator that Changes the ORIENTATION of the vector Changes the LENGTH of the vector Application of the Quaternion Operator is noted by the symbol
15
Q B
Quaternion Characteristics
Axis(Q) = Unit Vector perpendicular to the plane of rotation Angle(Q) = Angle between the vectors in the quotient Index(Q) = In a Right Quaternion is the Axis(Q) multiplied by the length ratio of the two vectors in the quotient.
16
Representation of Quaternions
Quaternion = A set of Four From the Latin Quaternio the Greek The combined operation of Scalar and Versor requires 4 numbers: 1 for Scale 1 for Angle 2 for Orientation (common plane) Quaternion = Scalar combined with Versor
17
qrs q r r s s q r s 0 r 0 s 0 A dq dr ds
B O(Q) Q A
18
dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q r r s s q r s 0 r 0 s 0 A dq dr ds
B O(Q) Q A
19
dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
Reciprocal Quaternions
B
A
A qrs q r r s s q r s 0 r 0 s 0 dq dr ds
R(Q) Q
B A
q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
dq dw dx Conjugate Quaternion dy dq 1 q dq The geometric reection of vector B q dq 1 B (the denominator) over vector dq q dq 1 A (the numerator) will be vector q dq q dq 1 Q C z f xy f xy
qrs q q r r s s q r s 0 r 0 s 0 dq dr ds
C Given the pair of vectors A and B qrs and their quotient q q r r s s q r s A Q lim q 0 r 0 s 0 B dq dr ds
B A Q
21
dq q dq q dq 1 dq q dq 1 q dq q dq 1 Conjugate Quaternion z f xy f xy The Conjugate of Quaternion Q is C dened as the quotient K Q qrs q A K Q lim q C q r 0 r r s s q r s K(Q) 0 s 0 dq dr ds
B A Q
Angle Q Axis Q
Angle K Q Axis K Q
22
dw dx dy Norm ofdq Quaternion a 1 q dq The Norm is the composition of 1 Quaternion with its Conjugate a q dq dq q dq 1 N Q Q K Q q dq q dq 1 B A Q z f xy A f xy Q B qrs C K Q q q r r s s A q r s lim q 0 r 0 s 2 0 A dq dr ds A C C B A B B
K(Q)
N Q
23
dw dx dy dq 1 Norm of q Quaternion a dq q dq 1 dq q dq 1 The rotation of the Conjugate K qQ dq 1 q dq A compensates the rotation of the f x y z quaternion Q. f xy K(Q) qrs q q r r s s The operator N Q produce a q r s lim q 0 Q parallel vector, hence N r is 0 s 0 dq always a positive Scalar operator dr ds
24
q2 dh dq dw dx dy The Square dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
Square of a Quaternion
of a Quaternion is dened as : Applying the quaternion twice B
A
2
Q C Q B
qrs q q r r s s q r s q 0 r 0 s 0 dq dr ds
Q Q Q
Q C
Q Q C
C
Q Q Q
25
C C
q q dq 1 z f xy f xy qrs r s s q r s 0 s 0 dq dr dsB
The succesive application of a Right Quaternion over a Vector results in a Vector in the opposite direction. A B
2
B B
C E
D E
D E
Versor of a Quaternion
Versor of a Vector = Unit vector parallel to the vector A A Versor of a Quaternion = Quotient of the Versors of the vectors U A U B
U A
U Q
A B
A B
27
Tensor of a Quaternion
Tensor of a Vector = Length of the vector T A A
T Q
A B
28
29
30
dx dy dq 1 q dq q dq 1 Vector - Arcs dq q dq 1 q dq q dq 1 Versors can be represented on the f x y z surface of a unit sphere. f xy qrs A V B q q r r s s q r s Application of versor V will lim q 0 r 0 s 0 move point B to point A dq dr ds
V A
31
dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q r r s s q r s r 0 s 0 dq dr ds Vector arcs can freely slide along the great circle and still represent the SAME Versor.
32
dx dy dq 1 Composition of q dq Biplanar Versors q dq 1 dq q dq 1 A q dq q dq 1 VBA B z f xy A composed with f xy qrs B VCB Cq q r r s s q r s results in the versor lim q 0 r 0 s 0 dq dr ds A B A VCA B C C
VBA B
VCA VCB C
33
dw dx dy Multiplication and Division of Diplanar Versor dq 1 q dq 1 The Spherical Triangle ABCq used to dene versor operations is dq dq q dq 1 analogously to how the parallelogram is used for vector operations q dq q dq 1 Multiplication of Versors as z f xy A f xy VCA VBA VCB VBA qrs q q r r s s Division of Versors as q r s V VBA qCA 0 r 0 s 0 lim VCB like the difference of vectors dq dr ds like the sum of vectors
VCA VCB C
34
dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q r r s s A q r s r 0 s 0 dq dr ds
C B C
C A A C A
The resulting versors VCA and VA C have the same angle but different axis (and so, different planes)
35
dw dx dy dq 1 q dq Composition of two Orthogonal Right Versors q dq 1 dq q dq 1 The multiplication of two dq q dq 1 A q orthogonal Right Versors produce af x y z Right Versor orthogonal to them f x y VCB VBA VCA qrs q q r r s s An when the order is reversed q r s C lim q 0 r 0 s 0 dq dr ds VCA VBA VCB
36
w q s q2 dh dq dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q q r r s s q r s im q 0 r 0 s 0 dq dr ds
i i=i
i = 1
1 Operator
37
dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
Elementary Versors
Composition of Elementary Versors
j
right-hand self i i j j k k 1 1 1
qrs r r s s q r s 0 s 0 dq dr ds
i k
i j j k k i
k i j
38
dh dq dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs r r s s q r s r 0 s 0 dq dr ds
S<1
S=1
S>1
39
Sum of Versors
Versors are Quotients. They can be summed ONLY when they have a COMMON DENOMINATOR
VBC VBA
C B A B
VBC
VBA
C B
A B
C B
40
dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q r r s s q r s 0 r 0 s 0 dq dr ds
B V BA A V DC C D
VBA
A B
VDC
C D
41
dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
B B A D C
qrs q r r s s A q r s 0 r 0 s 0 dq dr ds
C
Until their origins coincide
dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
44
dq
dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs r r s s q r s 0 s 0 dq dr ds
H/2 H/2
Its plane BISECTS those of the original two versors and has a Scalar characteristic
45
dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
H/2 H/2
qrs r r s s q r s 0 s 0 dq dr ds
H/2 H/2
46
q2 dh dq dw dx dy dq 1 q dq q dq 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs r r s s q r s r 0 s 0 dq dr ds
S<1
S=1
S>1
dq dw dx Right Versor in terms of Orthogonal Right Versor dy dq 1 If the three Orthogonal Right Versors i j k are multiplied by Scalars x y z q dq q dq 1 Q x i y j z k x2 y2 z2 1 dq q dq 1 dq q dq 1 z f xy f xy
qrs q r r s s q r s 0 r 0 s 0 dq dr ds
qrs A Q q q r r s s B q r s lim q 0 r 0 s 0 dq dr ds A Q B
A Q B
49
q dq q dq 1 f xy f xy
qrs r s s q r s B R 0 s 0 dq dr ds
BS
BR
BS
50
q dq 1 z f xy f xy qrs r s s q r s 0 s 0 dq dr ds
A BR B BS B
51
q dq dq q dq 1 dq q dq 1 z f xy f xy
qrs r r s s q r s r 0 s 0 dq dr ds
A T B
BT T B
A V BT B
A V
BT
BT
52
53
dq q dq 1 qQuaternions dqFour Coefcients dq q as 1 z f xy f xy Let L be the Ratio of lenghts between vectors A and B is L qrs q qBr r s s S S q r s B R B lim q should be equal to s 0 0 r 0 dq dr ds
L cos The Scalar factor
A B
BS
54
dq q dq 1 qQuaternions dqFour Coefcients dq q as 1 z f xy f xy Let L be the Ratio of lenghts between vectors A and B is L qrs q qBr r s s R R q r s B R B lim q should be equal to s 0 0 r 0 dq dr ds
L sin The Tensor of he Right part
A B
BS
55
The real number w represents the Scalar part, The sum x i yj z k represents the Right part.
56
Product of Quaternions
Two quaternions Q1 and Q2 are composed by Q1 Q2 That is equivalent to Q1 Q2 T Q1 T Q2 U Q1 U Q2 T Q1 U Q1 T Q2 U Q2
57
Product of Quaternions
Given a Quaternion Q resulting from the composition Q Its Tensor is T Q Its Versor is U Q U Q1 U Q2 T Q1 T Q2 Q1 Q2
58
59
60
2xy x2 2yz 0
2wz y2 2wx z2 w2
2xz 2yz x2 0
2wy 2wx y2 z2 w2 x2
0 0 0 y2 z2
61
References
[1] W.R. Hamilton. Elements of Quaternions, volume I. Chelsea Publishing Company, third edition, 1969. The original was published in 1866. [2] C.J. Joly. A Manual of Quaternions. MacMillan and Co., Limited, 1905.
62