Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
Rotations in 3D using Geometric Algebra
Kusal de Alwis
Mentor: Laura Iosip
Directed Reading Program, Spring 2019
The Problem
Overview
� Prior Methods for Rotations
� What is the Geometric Algebra?
� Rotating with Geometric Algebra
� Further Applications
Prior Methods
Rotation Matrix - 2D
Rotation Matrix - 3D
Rotation Matrix - 3D
Quaternions – 3D
Quaternions – 3D
Quaternions – 3D
Octonions – 4D
The Geometric Algebra
Extension of Rn
� Vectors and Scalars
� Same old algebra� Scalar Multiplication, Addition
� Only one augmentation…
The Geometric Product
� Inner Product� Standard Dot Product
The Geometric Product
� Inner Product� Standard Dot Product
� Exterior Product� Another multiplication scheme
� Represents planes
The Geometric Product
� Inner Product� Standard Dot Product
� Exterior Product� Another multiplication scheme
� Represents planes
� Geometric Product
*Only for vectors
Implications of the Geometric Product
𝑒"𝑒# = 𝑒" % 𝑒# + 𝑒" ∧ 𝑒# = 0 + 𝑒" ∧ 𝑒# = 𝑒" ∧ 𝑒#
Implications of the Geometric Product
𝑒"𝑒# = 𝑒" % 𝑒# + 𝑒" ∧ 𝑒# = 0 + 𝑒" ∧ 𝑒# = 𝑒" ∧ 𝑒#
Implications of the Geometric Product
𝑒"𝑒# = 𝑒" % 𝑒# + 𝑒" ∧ 𝑒# = 0 + 𝑒" ∧ 𝑒# = 𝑒" ∧ 𝑒#
𝑒" 𝑒" + 𝑒# = 𝑒"𝑒" + 𝑒"𝑒# = (𝑒" % 𝑒" + 𝑒" ∧ 𝑒") + (𝑒" % 𝑒# + 𝑒" ∧ 𝑒#) = 1 + 𝑒" ∧ 𝑒#
Multivectors in G3
Multivectors in G3
Multivectors in G3
Multivectors in G3
Multivectors in G3
Basis of Gn
Rn
� 𝑒"� 𝑒#� 𝑒,� 𝑒-� …
� 𝑒.
� n-dimensional space
Basis of Gn
Rn
� 𝑒"� 𝑒#� 𝑒,� 𝑒-� …
� 𝑒.
� n-dimensional space
Gn
� 1
� 𝑒", 𝑒#, 𝑒,, … , 𝑒.� 𝑒" ∧ 𝑒#, 𝑒" ∧ 𝑒,, … 𝑒" ∧ 𝑒., 𝑒# ∧ 𝑒,, 𝑒# ∧ 𝑒-, … 𝑒# ∧ 𝑒. …𝑒.1" ∧ 𝑒.� 𝑒" ∧ 𝑒# ∧ 𝑒,, 𝑒" ∧ 𝑒# ∧ 𝑒-, …
� …
� 𝑒" ∧ 𝑒# ∧ 𝑒, ∧ 𝑒- ∧ ⋯∧ 𝑒.1" ∧ 𝑒.
� 2n-dimensional space
Rotations in Gn
Projections & Rejections
� Unit a normal to a plane, Arbitrary v
Projections & Rejections
� Unit a normal to a plane, Arbitrary v
� Projection� 𝑣4 = 𝑎 % 𝑣 𝑎
� Rejection� 𝑣∥ = 𝑣 − 𝑣4 = 𝑣 − 𝑎 % 𝑣 𝑎
Reflection
� Reflect v on plane perpendicular to a
� 𝑣 = 𝑣∥ + 𝑣4
Reflection
� Reflect v on plane perpendicular to a
� 𝑣 = 𝑣∥ + 𝑣4� 𝑅9 𝑣 = 𝑣∥ − 𝑣4
Reflection
� Reflect v on plane perpendicular to a
� 𝑣 = 𝑣∥ + 𝑣4� 𝑅9 𝑣 = 𝑣∥ − 𝑣4 𝑎 % 𝑣 =
12 (𝑎𝑣 + 𝑣𝑎)
Reflection
� Reflect v on plane perpendicular to a
� 𝑣 = 𝑣∥ + 𝑣4� 𝑅9 𝑣 = 𝑣∥ − 𝑣4
= 𝑣 − 𝑎 % 𝑣 𝑎 − 𝑎 % 𝑣 𝑎
= 𝑣 − 2 𝑎 % 𝑣 𝑎
= 𝑣 − 212 𝑎𝑣 + 𝑣𝑎 𝑎 = 𝑣 − 𝑎𝑣𝑎 − 𝑣𝑎# = 𝑣 − 𝑎𝑣𝑎 − 𝑣
= −𝑎𝑣𝑎
𝑎 % 𝑣 =12 (𝑎𝑣 + 𝑣𝑎)
Rotation via Double Reflection
Rotation via Double Reflection
Rotation via Double Reflection
Rotation via Double Reflection
𝑅𝑜𝑡#=(𝑣) = 𝑅> 𝑅9 𝑣 = 𝑅> −𝑎𝑣𝑎 = −𝑏 −𝑎𝑣𝑎 𝑏 = 𝑏𝑎𝑣𝑎𝑏
Rotation via Double Reflection
𝑅𝑜𝑡#=(𝑣) = 𝑅> 𝑅9 𝑣 = 𝑅> −𝑎𝑣𝑎 = −𝑏 −𝑎𝑣𝑎 𝑏 = 𝑏𝑎𝑣𝑎𝑏
𝑏𝑎 𝑎𝑏 = 𝑏 𝑎𝑎 𝑏 = 𝑏𝑏 = 1, 𝑏𝑎 = (𝑎𝑏)1"
Rotation via Double Reflection
𝑅𝑜𝑡#=(𝑣) = 𝑅> 𝑅9 𝑣 = 𝑅> −𝑎𝑣𝑎 = −𝑏 −𝑎𝑣𝑎 𝑏 = 𝑏𝑎𝑣𝑎𝑏
𝑏𝑎 𝑎𝑏 = 𝑏 𝑎𝑎 𝑏 = 𝑏𝑏 = 1, 𝑏𝑎 = (𝑎𝑏)1"
𝑅𝑜𝑡#=(𝑣) = (𝑎𝑏)1"𝑣𝑎𝑏
Rotors
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 = 𝑢 𝑣 𝑒AB
Rotors
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 = 𝑢 𝑣 𝑒AB
Rotors
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 = 𝑢 𝑣 𝑒AB𝑎𝑏 = 𝑎 𝑏 𝑒AB = 𝑒=B
Rotors
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 = 𝑢 𝑣 𝑒AB
𝑎𝑏 = 𝑎 𝑏 𝑒AB = 𝑒=B
𝑅𝑜𝑡#= 𝑣 = 𝑎𝑏 1"𝑣𝑎𝑏 = 𝑒1=B𝑣𝑒=B
Rotors
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 = 𝑢 𝑣 𝑒AB
𝑎𝑏 = 𝑎 𝑏 𝑒AB = 𝑒=B
𝑅𝑜𝑡#= 𝑣 = 𝑎𝑏 1"𝑣𝑎𝑏 = 𝑒1=B𝑣𝑒=B
𝑅𝑜𝑡A,B 𝑣 = 𝑒1A#B𝑣𝑒
A#B
Relating back
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣= 𝑤 + 𝑥𝑒" ∧ 𝑒# + 𝑦𝑒# ∧ 𝑒, + 𝑧𝑒" ∧ 𝑒,
Relating back
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 𝑞 = 𝑤 + 𝑥𝑖 + 𝑦𝑗 + 𝑧𝑘= 𝑤 + 𝑥𝑒" ∧ 𝑒# + 𝑦𝑒# ∧ 𝑒, + 𝑧𝑒" ∧ 𝑒,
Relating back
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 𝑞 = 𝑤 + 𝑥𝑖 + 𝑦𝑗 + 𝑧𝑘
𝑒" ∧ 𝑒# = 𝑖 𝑒# ∧ 𝑒, = 𝑗 𝑒" ∧ 𝑒, = 𝑘
= 𝑤 + 𝑥𝑒" ∧ 𝑒# + 𝑦𝑒# ∧ 𝑒, + 𝑧𝑒" ∧ 𝑒,
Relating back
𝑅 = 𝑢𝑣 = 𝑢 % 𝑣 + 𝑢 ∧ 𝑣 𝑞 = 𝑤 + 𝑥𝑖 + 𝑦𝑗 + 𝑧𝑘
𝑒" ∧ 𝑒# = 𝑖 𝑒# ∧ 𝑒, = 𝑗 𝑒" ∧ 𝑒, = 𝑘
𝑄𝑢𝑎𝑡𝑒𝑟𝑛𝑖𝑜𝑛𝑠 ⊂ 𝐺𝑒𝑜𝑚𝑒𝑡𝑟𝑖𝑐 𝐴𝑙𝑔𝑒𝑏𝑟𝑎
= 𝑤 + 𝑥𝑒" ∧ 𝑒# + 𝑦𝑒# ∧ 𝑒, + 𝑧𝑒" ∧ 𝑒,
Further Applications
Linear Algebra – System of Equations
𝑥" 𝑦"𝑥# 𝑦#
𝛼𝛽 = 𝑏"
𝑏#
Linear Algebra – System of Equations
𝛼𝑥 + 𝛽𝑦 = 𝑏𝑥" 𝑦"𝑥# 𝑦#
𝛼𝛽 = 𝑏"
𝑏#
Linear Algebra – System of Equations
𝛼𝑥 + 𝛽𝑦 = 𝑏
Linear Algebra – System of Equations
𝛼𝑥 + 𝛽𝑦 = 𝑏
𝛼𝑥 ∧ 𝑦 + 𝛽𝑦 ∧ 𝑦 = 𝑏 ∧ 𝑦
Linear Algebra – System of Equations
𝛼𝑥 + 𝛽𝑦 = 𝑏
𝛼𝑥 ∧ 𝑦 + 𝛽𝑦 ∧ 𝑦 = 𝑏 ∧ 𝑦
𝑦 ∧ 𝑦 = 0𝛼𝑥 ∧ 𝑦 = 𝑏 ∧ 𝑦
Linear Algebra – System of Equations
𝛼𝑥 + 𝛽𝑦 = 𝑏
𝛼𝑥 ∧ 𝑦 + 𝛽𝑦 ∧ 𝑦 = 𝑏 ∧ 𝑦
𝑦 ∧ 𝑦 = 0𝛼𝑥 ∧ 𝑦 = 𝑏 ∧ 𝑦
𝛼 = >∧XY∧X
Linear Algebra – System of Equations
𝛼𝑥 + 𝛽𝑦 = 𝑏
𝛼𝑥 ∧ 𝑦 + 𝛽𝑦 ∧ 𝑦 = 𝑏 ∧ 𝑦
𝑦 ∧ 𝑦 = 0𝛼𝑥 ∧ 𝑦 = 𝑏 ∧ 𝑦
𝛼 = >∧XY∧X
𝛽 = >∧YX∧Y
= Y∧>Y∧X
Linear Algebra – System of Equations
𝑥 ∧ 𝑦 =𝑥" 𝑦"𝑥# 𝑦#
Linear Algebra – System of Equations
𝑥 ∧ 𝑦 =𝑥" 𝑦"𝑥# 𝑦#
𝛼 =𝑏 ∧ 𝑦𝑥 ∧ 𝑦
=
𝑏" 𝑦"𝑏# 𝑦#𝑥" 𝑦"𝑥# 𝑦#
Other Use Cases
� Geometric Calculus� Calculus in Gn
Other Use Cases
� Geometric Calculus� Calculus in Gn
� Homogeneous Geometric Algebra� Represent objects not centered at the origin� Projective Geometry
Other Use Cases
� Geometric Calculus� Calculus in Gn
� Homogeneous Geometric Algebra� Represent objects not centered at the origin� Projective Geometry
� Conformal Geometric Algebra� Better representations of points, lines, spheres, etc.� Generalized operations for transformations