Transformations Week 9, Lecture 18

Total Page:16

File Type:pdf, Size:1020Kb

Transformations Week 9, Lecture 18 CS 536 Computer Graphics Transformations Week 9, Lecture 18 David Breen, William Regli and Maxim Peysakhov Department of Computer Science Drexel University 1 2D Transformations 3 2D Affine Transformations All represented as matrix operations on vectors! Parallel lines preserved, angles/lengths not • Scale • Rotate • Translate • Reflect • Shear 4 Pics/Math courtesy of Dave Mount @ UMD-CP 2D Affine Transformations • Example 1: rotation and non uniform scale on unit cube • Example 2: shear first in x, then in y Note: – Preserves parallels – Does not preserve lengths and angles 5 1994 Foley/VanDam/Finer/Huges/Phillips ICG 2D Transforms: Translation • Rigid motion of points to new locations • Defined with column vectors: as 6 1994 Foley/VanDam/Finer/Huges/Phillips ICG 2D Transforms: Scale • Stretching of points along axes: In matrix form: or just: 7 1994 Foley/VanDam/Finer/Huges/Phillips ICG 2D Transforms: Rotation • Rotation of points about the origin Positive Angle: CCW Negative Angle: CW Matrix form: or just: 8 1994 Foley/VanDam/Finer/Huges/Phillips ICG 2D Transforms: Rotation • Substitute the 1st two equations into the 2nd two to get the general equation rcos(θ + φ) rcos(φ) x'= x cos(θ) − y sin(θ) y'= x sin(θ) + y cos(θ) 9 1994 Foley/VanDam/Finer/Huges/Phillips ICG € Homogeneous Coordinates • Observe: translation is treated differently from scaling and rotation • Homogeneous coordinates: allows all transformations to be Example: A 2D point (x,y) is the line (x,y,w), where w is any real #, in 3D treated as matrix homogenous coordinates. multiplications To get the point, homogenize by dividing by w (i.e. w=1) 10 1994 Foley/VanDam/Finer/Huges/Phillips ICG Recall our Affine Transformations 11 Pics/Math courtesy of Dave Mount @ UMD-CP Matrix Representation of 2D Affine Transformations • Translation: • Scale: • Rotation: • Shear: Reflection: Fy= 12 Composition of 2D Transforms • Rotate about a point P1 – Translate P1 to origin – Rotate – Translate back to P1 P’ = T ✴ P T 13 1994 Foley/VanDam/Finer/Huges/Phillips ICG Composition of 2D Transforms • Scale object around point P1 – P1 to origin – Scale – Translate back to P1 – Compose into T P’ = T ✴ P 14 1994 Foley/VanDam/Finer/Huges/Phillips ICG Composition of 2D Transforms • Scale + rotate object around point P1 and P’ = T ✴ P move to P2 – P1 to origin – Scale – Rotate – Translate to P2 15 1994 Foley/VanDam/Finer/Huges/Phillips ICG Composition of 2D Transforms • Be sure to multiple transformations in proper order! P’ = (T✴(R✴(S✴ (T✴ P)))) P’ = ((T✴ (R✴ (S ✴ T)))✴ P) P’ = T ✴ P 16 The Window-to-Viewport Transformation • Problem: Screen windows cannot display the whole world (window management) • How to transform and clip: Objects to Windows to Screen 18 Pics/Math courtesy of Dave Mount @ UMD-CP Window-to-Viewport Transformation • Given a window Three steps: and a viewport, • Translate what is the • Scale transformation from • Translate WCS to VPCS? 19 1994 Foley/VanDam/Finer/Huges/Phillips ICG Transforming World Coordinates to Viewports • 3 steps 1. Translate 2. Scale 3. Translate Overall Transformation: P'= MwvP 20 1994 Foley/VanDam/Finer/Huges/Phillips ICG € 3D Transformations 24 Representation of 3D Transformations • Z axis represents depth • Right Handed System – When looking “down” at the origin, positive rotation is CCW • Left Handed System – When looking “down”, positive rotation is in CW – More natural interpretation for displays, big z means “far” (into screen) 25 1994 Foley/VanDam/Finer/Huges/Phillips ICG 3D Homogenous Coordinates • Homogenous coordinates for 2D space requires 3D vectors & matrices • Homogenous coordinates for 3D space requires 4D vectors & matrices • [x,y,z,w] 26 3D Transformations: Scale • Scale – Parameters for each axis direction 27 3D Transformations: Translate • Translation 28 3D Transformations: Rotation • One rotation for each world coordinate axis 29 Rotation Around an Arbitrary Axis • Rotate a point P around axis n (x,y,z) by angle θ # tx 2 + c txy + sz txz − sy 0& % ( txy − sz ty 2 + c tyz + sx 0 R = % ( %txz + sy tyz − sx tz2 + c 0( % ( $ 0 0 0 1' • c = cos(θ) • s = sin(θ) € • t = (1 - c) Graphics Gems I, p. 466 & 498 30 Rotation Around an Arbitrary Axis • Also can be expressed as the Rodrigues Formula Prot = P cos(ϑ ) + (n × P)sin(ϑ ) + n(n⋅ P)(1− cos(ϑ )) € 31 Improved Rotations • Euler Angles have problems – How to interpolate keyframes? – Angles aren’t independent – Interpolation can create Gimble Lock, i.e. loss of a degree of freedom when axes align • Solution: Quaternions! 32 33 34 p = (0,x ) € 35 36 37 A & B are quaternions slerp – Spherical linear interpolation Need to take equals steps on the sphere 38 What about interpolating multiple keyframes? • Shoemake suggests using Bezier curves on the sphere • Offers a variation of the De Casteljau algorithm using slerp and quaternion control points • See K. Shoemake, “Animating rotation with quaternion curves”, Proc. SIGGRAPH ’85 39 3D Transformations: Reflect • Reflection: about x-y plane " −1 0 0 0 % $ ' 0 1 0 0 about y-z plane F = $ ' x $ 0 0 1 0 ' $ ' # 0 0 0 1 & 40 Reflection corresponds to negative scale factors sx = -1 sy = 1 original sx = -1 sy = -1 sx = 1 sy = -1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 3D Transformations: Shear ! 1 sh 0 0 $ # x & • Shear: # 0 1 0 0 & H x = (function of y) # 0 0 1 0 & # & " 0 0 0 1 % x' = x +shx ⋅ y 43 3D Transformations: Shear " y z % " X'% 1 Shx Shx 0 " X% $ ' $ ' $ ' Y' Sh x 1 Sh z 0 Y $ ' = $ y y ' ∗$ ' $ x y ' $ Z'' Shz Shz 1 0 $ Z' $ ' $ ' $ ' # 1 & # 0 0 0 1& # 1 & y z X ' = X + ShxY + Shx Z x z Y ' = Shy X +Y + Shy Z € x y Z ' = Shz X + Shz Y + Z 45 Example: Composition of 3D Transformations • Goal: Transform P1P2 and P1P3 46 1994 Foley/VanDam/Finer/Huges/Phillips ICG Example (Cont.) (1) • Process 1. Translate P1 to (0,0,0) 2. Rotate about y 3. Rotate about x 4. Rotate about z (2-3) (4) 47 1994 Foley/VanDam/Finer/Huges/Phillips ICG Final Result • What we’ve really done is transform the local coordinate system Rx, Ry, Rz to align with the origin x,y,z 48 1994 Foley/VanDam/Finer/Huges/Phillips ICG Example 2: Composition of 3D Transformations • Airplane defined in x,y,z • Problem: want to point it in Dir of Flight (DOF) centered at point P • Note: DOF is a vector • Process: – Rotate plane – Move to P 49 1994 Foley/VanDam/Finer/Huges/Phillips ICG Example 2 (cont.) • Zp axis to be DOF • Xp axis to be a horizontal vector perpendicular to DOF – y x DOF • Yp, vector perpendicular to both Zp and Xp (i.e.Zp x Xp) 50 1994 Foley/VanDam/Finer/Huges/Phillips ICG Transformations to Change Coordinate Systems • Issue: the world has many different relative frames of reference • How do we transform among them? • Example: CAD Assemblies & Animation Models 51 Transformations to Change Coordinate Systems • 4 coordinate systems 1 point P M1←2 = T (4,2) M 2←3 = T (2,3) • S(0.5,0.5) M 3←4 = T (6.7,1.8) • R(45 ) 52 1994 Foley/VanDam/Finer/Huges/Phillips ICG Coordinate System Example (1) • Translate the House to the origin M1←2 = T(x1,y1) −1 M2←1 = (M1←2 ) = T(−x1,−y1) P1 The matrix Mij that maps points from coordinate system j € to i is the inverse of the matrix Mji that maps points from coordinate system j to coordinate system i. 53 1994 Foley/VanDam/Finer/Huges/Phillips ICG Coordinate System Example (2) • Transformation M = M • M • M • M Composition: 5←1 5←4 4←3 3←2 2←1 € 54 1994 Foley/VanDam/Finer/Huges/Phillips ICG World Coordinates and Local Coordinates • To move the tricycle, we need to know how all of its parts relate to the WCS • Example: front wheel rotates on the ground wrt the front wheel’s z (wo) (wh ) axis: P = T(αr,0,0)⋅ Rz (α)⋅ P Coordinates of P in wheel coordinate system: (wh) (wh ) P' = Rz (α)⋅ P 55 € 1994 Foley/VanDam/Finer/Huges/Phillips ICG € Properties of Transformation Matrices • Note that matrix multiplication is not commutative • i.e. in general M1M2 ≠ M2M1 • T – reflection around y axis • T’ – rotation in the plane .
Recommended publications
  • Quaternions and Cli Ord Geometric Algebras
    Quaternions and Cliord Geometric Algebras Robert Benjamin Easter First Draft Edition (v1) (c) copyright 2015, Robert Benjamin Easter, all rights reserved. Preface As a rst rough draft that has been put together very quickly, this book is likely to contain errata and disorganization. The references list and inline citations are very incompete, so the reader should search around for more references. I do not claim to be the inventor of any of the mathematics found here. However, some parts of this book may be considered new in some sense and were in small parts my own original research. Much of the contents was originally written by me as contributions to a web encyclopedia project just for fun, but for various reasons was inappropriate in an encyclopedic volume. I did not originally intend to write this book. This is not a dissertation, nor did its development receive any funding or proper peer review. I oer this free book to the public, such as it is, in the hope it could be helpful to an interested reader. June 19, 2015 - Robert B. Easter. (v1) [email protected] 3 Table of contents Preface . 3 List of gures . 9 1 Quaternion Algebra . 11 1.1 The Quaternion Formula . 11 1.2 The Scalar and Vector Parts . 15 1.3 The Quaternion Product . 16 1.4 The Dot Product . 16 1.5 The Cross Product . 17 1.6 Conjugates . 18 1.7 Tensor or Magnitude . 20 1.8 Versors . 20 1.9 Biradials . 22 1.10 Quaternion Identities . 23 1.11 The Biradial b/a .
    [Show full text]
  • Vectors, Matrices and Coordinate Transformations
    S. Widnall 16.07 Dynamics Fall 2009 Lecture notes based on J. Peraire Version 2.0 Lecture L3 - Vectors, Matrices and Coordinate Transformations By using vectors and defining appropriate operations between them, physical laws can often be written in a simple form. Since we will making extensive use of vectors in Dynamics, we will summarize some of their important properties. Vectors For our purposes we will think of a vector as a mathematical representation of a physical entity which has both magnitude and direction in a 3D space. Examples of physical vectors are forces, moments, and velocities. Geometrically, a vector can be represented as arrows. The length of the arrow represents its magnitude. Unless indicated otherwise, we shall assume that parallel translation does not change a vector, and we shall call the vectors satisfying this property, free vectors. Thus, two vectors are equal if and only if they are parallel, point in the same direction, and have equal length. Vectors are usually typed in boldface and scalar quantities appear in lightface italic type, e.g. the vector quantity A has magnitude, or modulus, A = |A|. In handwritten text, vectors are often expressed using the −→ arrow, or underbar notation, e.g. A , A. Vector Algebra Here, we introduce a few useful operations which are defined for free vectors. Multiplication by a scalar If we multiply a vector A by a scalar α, the result is a vector B = αA, which has magnitude B = |α|A. The vector B, is parallel to A and points in the same direction if α > 0.
    [Show full text]
  • ROTATION THEORY These Notes Present a Brief Survey of Some
    ROTATION THEORY MICHALMISIUREWICZ Abstract. Rotation Theory has its roots in the theory of rotation numbers for circle homeomorphisms, developed by Poincar´e. It is particularly useful for the study and classification of periodic orbits of dynamical systems. It deals with ergodic averages and their limits, not only for almost all points, like in Ergodic Theory, but for all points. We present the general ideas of Rotation Theory and its applications to some classes of dynamical systems, like continuous circle maps homotopic to the identity, torus homeomorphisms homotopic to the identity, subshifts of finite type and continuous interval maps. These notes present a brief survey of some aspects of Rotation Theory. Deeper treatment of the subject would require writing a book. Thus, in particular: • Not all aspects of Rotation Theory are described here. A large part of it, very important and deserving a separate book, deals with homeomorphisms of an annulus, homotopic to the identity. Including this subject in the present notes would make them at least twice as long, so it is ignored, except for the bibliography. • What is called “proofs” are usually only short ideas of the proofs. The reader is advised either to try to fill in the details himself/herself or to find the full proofs in the literature. More complicated proofs are omitted entirely. • The stress is on the theory, not on the history. Therefore, references are not cited in the text. Instead, at the end of these notes there are lists of references dealing with the problems treated in various sections (or not treated at all).
    [Show full text]
  • The Devil of Rotations Is Afoot! (James Watt in 1781)
    The Devil of Rotations is Afoot! (James Watt in 1781) Leo Dorst Informatics Institute, University of Amsterdam XVII summer school, Santander, 2016 0 1 The ratio of vectors is an operator in 2D Given a and b, find a vector x that is to c what b is to a? So, solve x from: x : c = b : a: The answer is, by geometric product: x = (b=a) c kbk = cos(φ) − I sin(φ) c kak = ρ e−Iφ c; an operator on c! Here I is the unit-2-blade of the plane `from a to b' (so I2 = −1), ρ is the ratio of their norms, and φ is the angle between them. (Actually, it is better to think of Iφ as the angle.) Result not fully dependent on a and b, so better parametrize by ρ and Iφ. GAViewer: a = e1, label(a), b = e1+e2, label(b), c = -e1+2 e2, dynamicfx = (b/a) c,g 1 2 Another idea: rotation as multiple reflection Reflection in an origin plane with unit normal a x 7! x − 2(x · a) a=kak2 (classic LA): Now consider the dot product as the symmetric part of a more fundamental geometric product: 1 x · a = 2(x a + a x): Then rewrite (with linearity, associativity): x 7! x − (x a + a x) a=kak2 (GA product) = −a x a−1 with the geometric inverse of a vector: −1 2 FIG(7,1) a = a=kak . 2 3 Orthogonal Transformations as Products of Unit Vectors A reflection in two successive origin planes a and b: x 7! −b (−a x a−1) b−1 = (b a) x (b a)−1 So a rotation is represented by the geometric product of two vectors b a, also an element of the algebra.
    [Show full text]
  • Rotation Matrix - Wikipedia, the Free Encyclopedia Page 1 of 22
    Rotation matrix - Wikipedia, the free encyclopedia Page 1 of 22 Rotation matrix From Wikipedia, the free encyclopedia In linear algebra, a rotation matrix is a matrix that is used to perform a rotation in Euclidean space. For example the matrix rotates points in the xy -Cartesian plane counterclockwise through an angle θ about the origin of the Cartesian coordinate system. To perform the rotation, the position of each point must be represented by a column vector v, containing the coordinates of the point. A rotated vector is obtained by using the matrix multiplication Rv (see below for details). In two and three dimensions, rotation matrices are among the simplest algebraic descriptions of rotations, and are used extensively for computations in geometry, physics, and computer graphics. Though most applications involve rotations in two or three dimensions, rotation matrices can be defined for n-dimensional space. Rotation matrices are always square, with real entries. Algebraically, a rotation matrix in n-dimensions is a n × n special orthogonal matrix, i.e. an orthogonal matrix whose determinant is 1: . The set of all rotation matrices forms a group, known as the rotation group or the special orthogonal group. It is a subset of the orthogonal group, which includes reflections and consists of all orthogonal matrices with determinant 1 or -1, and of the special linear group, which includes all volume-preserving transformations and consists of matrices with determinant 1. Contents 1 Rotations in two dimensions 1.1 Non-standard orientation
    [Show full text]
  • 5 Spinor Calculus
    5 Spinor Calculus 5.1 From triads and Euler angles to spinors. A heuristic introduction. As mentioned already in Section 3.4.3, it is an obvious idea to enrich the Pauli algebra formalism by introducing the complex vector space V(2; C) on which the matrices operate. The two-component complex vectors are traditionally called spinors28. We wish to show that they give rise to a wide range of applications. In fact we shall introduce the spinor concept as a natural answer to a problem that arises in the context of rotational motion. In Section 3 we have considered rotations as operations performed on a vector space. Whereas this approach enabled us to give a group-theoretical definition of the magnetic field, a vector is not an appropriate construct to account for the rotation of an orientable object. The simplest mathematical model suitable for this purpose is a Cartesian (orthogonal) three-frame, briefly, a triad. The problem is to consider two triads with coinciding origins, and the rotation of the object frame is described with respect to the space frame. The triads are represented in terms of their respective unit vectors: the space frame as Σs(x^1; x^2; x^3) and the object frame as Σc(e^1; e^2; e^3). Here c stands for “corpus,” since o for “object” seems ambiguous. We choose the frames to be right-handed. These orientable objects are not pointlike, and their parametrization offers novel problems. In this sense we may refer to triads as “higher objects,” by contrast to points which are “lower objects.” The thought that comes most easily to mind is to consider the nine direction cosines e^i · x^k but this is impractical, because of the six relations connecting these parameters.
    [Show full text]
  • Coordinate Transformation
    Coordinate Transformation Coordinate Transformations In this chapter, we explore mappings – where a mapping is a function that "maps" one set to another, usually in a way that preserves at least some of the underlyign geometry of the sets. For example, a 2-dimensional coordinate transformation is a mapping of the form T (u; v) = x (u; v) ; y (u; v) h i The functions x (u; v) and y (u; v) are called the components of the transforma- tion. Moreover, the transformation T maps a set S in the uv-plane to a set T (S) in the xy-plane: If S is a region, then we use the components x = f (u; v) and y = g (u; v) to …nd the image of S under T (u; v) : EXAMPLE 1 Find T (S) when T (u; v) = uv; u2 v2 and S is the unit square in the uv-plane (i.e., S = [0; 1] [0; 1]). Solution: To do so, let’s determine the boundary of T (S) in the xy-plane. We use x = uv and y = u2 v2 to …nd the image of the lines bounding the unit square: Side of Square Result of T (u; v) Image in xy-plane v = 0; u in [0; 1] x = 0; y = u2; u in [0; 1] y-axis for 0 y 1 u = 1; v in [0; 1] x = v; y = 1 v2; v in [0; 1] y = 1 x2; x in[0; 1] v = 1; u in [0; 1] x = u; y = u2 1; u in [0; 1] y = x2 1; x in [0; 1] u = 0; u in [0; 1] x = 0; y = v2; v in [0; 1] y-axis for 1 y 0 1 As a result, T (S) is the region in the xy-plane bounded by x = 0; y = x2 1; and y = 1 x2: Linear transformations are coordinate transformations of the form T (u; v) = au + bv; cu + dv h i where a; b; c; and d are constants.
    [Show full text]
  • Spinors for Everyone Gerrit Coddens
    Spinors for everyone Gerrit Coddens To cite this version: Gerrit Coddens. Spinors for everyone. 2017. cea-01572342 HAL Id: cea-01572342 https://hal-cea.archives-ouvertes.fr/cea-01572342 Submitted on 7 Aug 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Spinors for everyone Gerrit Coddens Laboratoire des Solides Irradi´es, CEA-DSM-IRAMIS, CNRS UMR 7642, Ecole Polytechnique, 28, Route de Saclay, F-91128-Palaiseau CEDEX, France 5th August 2017 Abstract. It is hard to find intuition for spinors in the literature. We provide this intuition by explaining all the underlying ideas in a way that can be understood by everybody who knows the definition of a group, complex numbers and matrix algebra. We first work out these ideas for the representation SU(2) 3 of the three-dimensional rotation group in R . In a second stage we generalize the approach to rotation n groups in vector spaces R of arbitrary dimension n > 3, endowed with an Euclidean metric. The reader can obtain this way an intuitive understanding of what a spinor is. We discuss the meaning of making linear combinations of spinors.
    [Show full text]
  • A Tutorial on Euler Angles and Quaternions
    A Tutorial on Euler Angles and Quaternions Moti Ben-Ari Department of Science Teaching Weizmann Institute of Science http://www.weizmann.ac.il/sci-tea/benari/ Version 2.0.1 c 2014–17 by Moti Ben-Ari. This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/ by-sa/3.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. Chapter 1 Introduction You sitting in an airplane at night, watching a movie displayed on the screen attached to the seat in front of you. The airplane gently banks to the left. You may feel the slight acceleration, but you won’t see any change in the position of the movie screen. Both you and the screen are in the same frame of reference, so unless you stand up or make another move, the position and orientation of the screen relative to your position and orientation won’t change. The same is not true with respect to your position and orientation relative to the frame of reference of the earth. The airplane is moving forward at a very high speed and the bank changes your orientation with respect to the earth. The transformation of coordinates (position and orientation) from one frame of reference is a fundamental operation in several areas: flight control of aircraft and rockets, move- ment of manipulators in robotics, and computer graphics. This tutorial introduces the mathematics of rotations using two formalisms: (1) Euler angles are the angles of rotation of a three-dimensional coordinate frame.
    [Show full text]
  • General N-Dimensional Rotations
    General n-Dimensional Rotations Antonio Aguilera Ricardo Pérez-Aguila Centro de Investigación en Tecnologías de Información y Automatización (CENTIA) Universidad de las Américas, Puebla (UDLAP) Ex-Hacienda Santa Catarina Mártir México 72820, Cholula, Puebla [email protected] [email protected] ABSTRACT This paper presents a generalized approach for performing general rotations in the n-Dimensional Euclidean space around any arbitrary (n-2)-Dimensional subspace. It first shows the general matrix representation for the principal n-D rotations. Then, for any desired general n-D rotation, a set of principal n-D rotations is systematically provided, whose composition provides the original desired rotation. We show that this coincides with the well-known 2D and 3D cases, and provide some 4D applications. Keywords Geometric Reasoning, Topological and Geometrical Interrogations, 4D Visualization and Animation. 1. BACKGROUND arctany x x 0 arctany x x 0 The n-Dimensional Translation arctan2(y, x) 2 x 0, y 0 In this work, we will use a simple nD generalization of the 2D and 3D translations. A point 2 x 0, y 0 x (x1 , x2 ,..., xn ) can be translated by a distance vec- In this work we will only use arctan2. tor d (d ,d ,...,d ) and results x (x, x ,..., x ) , 1 2 n 1 2 n 2. INTRODUCTION which, can be computed as x x T (d) , or in its expanded matrix form in homogeneous coordinates, The rotation plane as shown in Eq.1. [Ban92] and [Hol91] have identified that if in the 2D space a rotation is given around a point, and in the x1 x2 xn 1 3D space it is given around a line, then in the 4D space, in analogous way, it must be given around a 1 0 0 0 plane.
    [Show full text]
  • CS184: a Proof of the Quaternion Rotation Representation 3/16/15, 7:50 AM
    CS184: A Proof of the Quaternion Rotation Representation 3/16/15, 7:50 AM http://www.cs.berkeley.edu/~laura/cs184/quat/quatproof.html Go DEC FEB 55 captures 12 6 Jun 97 - 2 May 13 2002 2004 CS 184 home page Do quaternions really perform rotations? We claim that you can use quaternion multiplication to perform a rotation about an arbitrary axis through the origin. Is it a rotation? Ken Shoemake sent me this short proof that p -> q p q-1 performs a rotation in 3D: Quaternion multiplication preserves norms; i.e., N(pq) = N(p)N(q). This also implies N(q-1) = N(q)-1. Hence N(q p q-1) = N(p). This proves that p -> q p q-1 is an orthogonal transform in 4D. Scalar multiplication commutes, so q s q-1 = s. Thus p -> q p q-1 is an orthogonal transform of the 3D vector of p. There is a continuous path from the identity to every possible action. This excludes reflections, so p -> q p q-1 is a 3D rotation. So, is it the right rotation? It is easy to see that the axis, represented by the unit quaternion, u, is preserved. Since q = (cos t/2 + u sin t/2) and u-1 = -u, we have: q = cos t/2 + u sin t/2 q-1 = cos t/2 + u-1 sin t/2 u -> q u q-1 = (cos t/2 + u sin t/2) u (cost t/2 + u-1 sin t/2) = (cos t/2 + u sin t/2) (u cost t/2 + sin t/2) = u cos2 t/2 + u sin2 t/2 = u All that remains is to show that the rotation moves through the correct angle.
    [Show full text]
  • Spacetime Algebra As a Powerful Tool for Electromagnetism
    Spacetime algebra as a powerful tool for electromagnetism Justin Dressela,b, Konstantin Y. Bliokhb,c, Franco Norib,d aDepartment of Electrical and Computer Engineering, University of California, Riverside, CA 92521, USA bCenter for Emergent Matter Science (CEMS), RIKEN, Wako-shi, Saitama, 351-0198, Japan cInterdisciplinary Theoretical Science Research Group (iTHES), RIKEN, Wako-shi, Saitama, 351-0198, Japan dPhysics Department, University of Michigan, Ann Arbor, MI 48109-1040, USA Abstract We present a comprehensive introduction to spacetime algebra that emphasizes its prac- ticality and power as a tool for the study of electromagnetism. We carefully develop this natural (Clifford) algebra of the Minkowski spacetime geometry, with a particular focus on its intrinsic (and often overlooked) complex structure. Notably, the scalar imaginary that appears throughout the electromagnetic theory properly corresponds to the unit 4-volume of spacetime itself, and thus has physical meaning. The electric and magnetic fields are combined into a single complex and frame-independent bivector field, which generalizes the Riemann-Silberstein complex vector that has recently resurfaced in stud- ies of the single photon wavefunction. The complex structure of spacetime also underpins the emergence of electromagnetic waves, circular polarizations, the normal variables for canonical quantization, the distinction between electric and magnetic charge, complex spinor representations of Lorentz transformations, and the dual (electric-magnetic field exchange) symmetry that produces helicity conservation in vacuum fields. This latter symmetry manifests as an arbitrary global phase of the complex field, motivating the use of a complex vector potential, along with an associated transverse and gauge-invariant bivector potential, as well as complex (bivector and scalar) Hertz potentials.
    [Show full text]