790 likes | 859 Views
Quaternions and Complex Numbers. Dr. Scott Schaefer. Complex Numbers. Defined by real and imaginary part where. Complex Numbers. Defined by real and imaginary part where. Complex Numbers. Defined by real and imaginary part where. Complex Numbers.
E N D
Quaternions and Complex Numbers Dr. Scott Schaefer
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers • Defined by real and imaginary part • where
Complex Numbers and Rotations • Given a point (x,y), rotate that point about the origin by
Complex Numbers and Rotations • Given a point (x,y), rotate that point about the origin by
Complex Numbers and Rotations • Given a point (x,y), rotate that point about the origin by
Complex Numbers and Rotations • Given a point (x,y), rotate that point about the origin by Multiplication is rotation!!!
Quaternions – History • Hamilton attempted to extend complex numbers from 2D to 3D… impossible • 1843 Hamilton discovered a generalization to 4D and wrote it on the side of a bridge in Dublin • One real part, 3 complex parts
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • Claim: unit quaternions represent 3D rotation
Quaternions and Rotations • The quaternion representing rotation about the unit axis v by is
Quaternions and Rotations • The quaternion representing rotation about the unit axis v by is • To convert to matrix, assume q=(s,v) and |q|=1
Quaternions vs. Matrices • Quaternions take less space (4 numbers vs. 9 for matrices) • Rotating a vector requires 28 multiplications using quaternions vs. 9 for matrices • Composing two rotations using quaternions q1q2 requires 16 multiples vs. 27 for matrices • Quaternions are typically not hardware accelerated whereas matrices are
Quaternions and Interpolation • Given two orientations q1 and q2, find the orientation halfway between
Quaternions and Interpolation • Given two orientations q1 and q2, find the orientation halfway between
Quaternions and Interpolation • Unit quaternions represent points on a 4D hyper-sphere • Interpolation on the sphere gives rotations that bend the least
Quaternions and Interpolation • Unit quaternions represent points on a 4D hyper-sphere • Interpolation on the sphere gives rotations that bend the least