Английская Википедия:Applications of dual quaternions to 2D geometry

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description

Planar quaternion multiplication
<math>\times</math> <math>1</math> <math>i</math> <math>\varepsilon j</math> <math>\varepsilon k</math>
<math>1</math> <math>1</math> <math>i</math> <math>\varepsilon j</math> <math>\varepsilon k</math>
<math>i</math> <math>i</math> <math>-1</math> <math>\varepsilon k</math> <math>-\varepsilon j</math>
<math>\varepsilon j</math> <math>\varepsilon j</math> <math>-\varepsilon k</math> <math>0</math> <math>0</math>
<math>\varepsilon k</math> <math>\varepsilon k</math> <math>\varepsilon j</math> <math>0</math> <math>0</math>

In this article, we discuss certain applications of the dual quaternion algebra to 2D geometry. At this present time, the article is focused on a 4-dimensional subalgebra of the dual quaternions which we will call the planar quaternions.

The planar quaternions make up a four-dimensional algebra over the real numbers.[1][2] Their primary application is in representing rigid body motions in 2D space.

Unlike multiplication of dual numbers or of complex numbers, that of planar quaternions is non-commutative.

Definition

In this article, the set of planar quaternions is denoted <math>\mathbb {DC}</math>. A general element <math>q</math> of <math>\mathbb {DC}</math> has the form <math display="inline">A + Bi + C\varepsilon j + D\varepsilon k</math> where <math>A</math>, <math>B</math>, <math>C</math> and <math>D</math> are real numbers; <math>\varepsilon</math> is a dual number that squares to zero; and <math>i</math>, <math>j</math>, and <math>k</math> are the standard basis elements of the quaternions.

Multiplication is done in the same way as with the quaternions, but with the additional rule that <math display="inline"> \varepsilon </math> is nilpotent of index <math>2</math>, i.e., <math display="inline"> \varepsilon^2 = 0 </math>, which in some circumstances makes <math display="inline">\varepsilon</math> comparable to an infinitesimal number. It follows that the multiplicative inverses of planar quaternions are given by <math display="block"> (A + Bi + C\varepsilon j + D\varepsilon k)^{-1} = \frac{A - Bi - C\varepsilon j - D\varepsilon k}{A^2+B^2}</math>

The set <math>\{1, i, \varepsilon j, \varepsilon k\}</math> forms a basis of the vector space of planar quaternions, where the scalars are real numbers.

The magnitude of a planar quaternion <math>q</math> is defined to be <math display="block">|q| = \sqrt{A^2 + B^2}.</math>

For applications in computer graphics, the number <math>A + Bi + C\varepsilon j + D\varepsilon k</math> is commonly represented as the 4-tuple <math>(A,B,C,D)</math>.

Matrix representation

A planar quaternion <math>q = A + Bi + C\varepsilon j + D\varepsilon k</math> has the following representation as a 2x2 complex matrix: <math display="block">\begin{pmatrix}A + Bi & C + Di \\ 0 & A - Bi \end{pmatrix}.</math>

It can also be represented as a 2×2 dual number matrix: <math display="block">\begin{pmatrix}A + C\varepsilon & -B + D\varepsilon \\ B + D\varepsilon & A - C\varepsilon\end{pmatrix}.</math> The above two matrix representations are related to the Möbius transformations and Laguerre transformations respectively.

Terminology

The algebra discussed in this article is sometimes called the dual complex numbers. This may be a misleading name because it suggests that the algebra should take the form of either:

  1. The dual numbers, but with complex-number entries
  2. The complex numbers, but with dual-number entries

An algebra meeting either description exists. And both descriptions are equivalent. (This is due to the fact that the tensor product of algebras is commutative up to isomorphism). This algebra can be denoted as <math>\mathbb C[x]/(x^2)</math> using ring quotienting. The resulting algebra has a commutative product and is not discussed any further.

Representing rigid body motions

Let <math display="block">q = A + Bi + C\varepsilon j + D\varepsilon k</math> be a unit-length planar quaternion, i.e. we must have that <math display="block">|q| = \sqrt{A^2 + B^2} = 1.</math>

The Euclidean plane can be represented by the set <math display="inline">\Pi = \{i + x \varepsilon j + y \varepsilon k \mid x \in \Reals, y \in \Reals\}</math>.

An element <math>v = i + x \varepsilon j + y \varepsilon k</math> on <math>\Pi</math> represents the point on the Euclidean plane with Cartesian coordinate <math>(x,y)</math>.

<math>q</math> can be made to act on <math>v</math> by <math display="block">qvq^{-1},</math> which maps <math>v</math> onto some other point on <math>\Pi</math>.

We have the following (multiple) polar forms for <math>q</math>:

  1. When <math>B \neq 0</math>, the element <math>q</math> can be written as <math display="block">\cos(\theta/2) + \sin(\theta/2)(i + x\varepsilon j + y\varepsilon k),</math> which denotes a rotation of angle <math>\theta</math> around the point <math>(x,y)</math>.
  2. When <math>B = 0</math>, the element <math>q</math> can be written as <math display="block">\begin{aligned}&1 + i(x\varepsilon j + y\varepsilon k)\\ = {} & 1 - y\varepsilon j + x\varepsilon k,\end{aligned}</math> which denotes a translation by vector <math>\begin{pmatrix}x \\ y\end{pmatrix}.</math>

Geometric construction

A principled construction of the planar quaternions can be found by first noticing that they are a subset of the dual-quaternions.

There are two geometric interpretations of the dual-quaternions, both of which can be used to derive the action of the planar quaternions on the plane:

  • As a way to represent rigid body motions in 3D space. The planar quaternions can then be seen to represent a subset of those rigid-body motions. This requires some familiarity with the way the dual quaternions act on Euclidean space. We will not describe this approach here as it is adequately done elsewhere.
  • The dual quaternions can be understood as an "infinitesimal thickening" of the quaternions.[3][4][5] Recall that the quaternions can be used to represent 3D spatial rotations, while the dual numbers can be used to represent "infinitesimals". Combining those features together allows for rotations to be varied infinitesimally. Let <math>\Pi</math> denote an infinitesimal plane lying on the unit sphere, equal to <math>\{i + x \varepsilon j + y \varepsilon k \mid x \in \mathbb R, y \in \mathbb R\}</math>. Observe that <math>\Pi</math> is a subset of the sphere, in spite of being flat (this is thanks to the behaviour of dual number infinitesimals). Шаблон:Pb Observe then that as a subset of the dual quaternions, the planar quaternions rotate the plane <math>\Pi</math> back onto itself. The effect this has on <math>v \in \Pi</math> depends on the value of <math>q = A + Bi + C\varepsilon j + D\varepsilon k</math> in <math>qvq^{-1}</math>:
    1. When <math>B\neq 0</math>, the axis of rotation points towards some point <math>p</math> on <math>\Pi</math>, so that the points on <math>\Pi</math> experience a rotation around <math>p</math>.
    2. When <math>B = 0</math>, the axis of rotation points away from the plane, with the angle of rotation being infinitesimal. In this case, the points on <math>\Pi</math> experience a translation.

See also

References

Шаблон:Reflist

Шаблон:Number systems

  1. Шаблон:Citation
  2. Gunn C. (2011) On the Homogeneous Model of Euclidean Geometry. In: Dorst L., Lasenby J. (eds) Guide to Geometric Algebra in Practice. Springer, London
  3. Шаблон:Cite web
  4. Шаблон:Cite journal
  5. Шаблон:Cite journal