2D rotation

From HandWiki
Short description: Movement of an object which leaves one point unchanged


In geometry and physics, a 2D rotation is a rotation in two dimensions, commonly on the Euclidean plane. It leaves unchanged a single point, the centre of rotation, often assumed at the origin of the coordinate system. The amount of rotation is represented by the angle of rotation, expressed in units of measurement such as degrees or radians; a signed angle allows for two different senses of rotation: clockwise or anti-clockwise. It corresponds to the 2D special orthogonal group or SO(2).

Formulation

In two dimensions, to carry out a rotation using a matrix, the point (x, y) to be rotated counterclockwise is written as a column vector, then multiplied by a rotation matrix calculated from the angle θ:

[x′y′]=[cos⁡θ−sin⁡θsin⁡θcos⁡θ][xy].

The coordinates of the point after rotation are x′, y′, and the formulae for x′ and y′ are

x′=xcos⁡θ−ysin⁡θy′=xsin⁡θ+ycos⁡θ.

The vectors [xy] and [x′y′] have the same magnitude and are separated by an angle θ as expected.

Points on the R2 plane can be also presented as complex numbers: the point (x, y) in the plane is represented by the complex number

z=x+iy

This can be rotated through an angle θ by multiplying it by eiθ, then expanding the product using Euler's formula as follows:

eiθz=(cos⁡θ+isin⁡θ)(x+iy)=xcos⁡θ+iycos⁡θ+ixsin⁡θ−ysin⁡θ=(xcos⁡θ−ysin⁡θ)+i(xsin⁡θ+ycos⁡θ)=x′+iy′,

and equating real and imaginary parts gives the same result as a two-dimensional matrix:

x′=xcos⁡θ−ysin⁡θy′=xsin⁡θ+ycos⁡θ.

Since complex numbers form a commutative ring, vector rotations in two dimensions are commutative, unlike in higher dimensions. They have only one degree of freedom, as such rotations are entirely determined by the angle of rotation.[1]

Rotation matrices

See also

References

  1. ↑ Lounesto 2001, p. 30.