0
11kviews
Explain the steps used in rotation of 2-D object about an arbitrary axis and derive the matrices for same.

Mumbai university > Comp > SEM 4 > Computer Graphics

Marks: 12M

Year: May 2015, Dec 2015

1 Answer
0
340views
  1. 2D rotation section aims at enabling the transformation matrix for rotating any object by some angle Ө.

  2. Rotation of a geometric model about an arbitrary axis, other than any of the coordinate axes, involves several rotational and translation transformations.

  3. When we rotate an object about the origin (in 2-D), we in fact rotate it about the z-axis.

  4. Every point on the object rotates along a circular path, with the center of rotation at the origin.

  5. If we wish to rotate an object about an arbitrary axis, which is perpendicular to the xy-plane, we will have to first translate the axis to the origin and then rotate the model, and finally, translate so that the axis of rotation is restored to its initial position.

  6. If we erroneously use the equation (2.9) directly, to rotate the object about a fixed axis, and skip the translation of this point to the origin, we will in fact end up rotating the object about the z-axis, and not about the fixed axis.

  7. Thus, the rotation of an object about an arbitrary axis, involves three steps:

    Step 1: Translate the fixed axis so that it coincides with the z-axis

    Step 2: Rotate the object about the axis

    Step 3: Translate the fixed axis back to the original position

Derivation of matrix of 2D object about an arbitrary axis

  1. Consider a position vector from origin to point P(x, y).

  2. Let ‘r’ be the length of vector and ‘ɸ’ be the angle of the vector with x-axis.

  3. It is required to rotate the point P by an angle Ө in anti-clockwise direction: the point P is now shifted to point P* i.e. (x, y).

  4. The position vector

$$P = [x, y] = [r cosɸ, r sinɸ]$$ and

$$P* = [x, y] = [r cos (Ө + ɸ), r sin(Ө + ɸ)]$$

  1. First let us find the value of x* in terms of x, y and Ө.

$$x* = r cos(Ө + ɸ)$$

$$x* = r cosӨcosɸ - rsinӨsinɸ$$

  1. Since x = sinɸ

$$y = r sinɸ$$

$$x* = (r cosɸ) cosӨ –(r sinɸ) sinӨ$$

$$x* = x cosӨ – y sinӨ$$

  1. Now let us find the value of y* in terms of x,y and Ө.

$$y* = r sin(Ө + ɸ)$$

$$ = r sinӨcosɸ + r cosӨsinɸ$$

$$ = (r cosɸ) sin Ө + (r sin ɸ)cosӨ$$

  1. Since x = r cosɸ

$$y = r sinɸ$$

$$y* = x sinӨ + ycosӨ$$

$$y* = x sin Ө + ycosӨ$$

  1. In matrix form

$$[X*] = [X] [T]$$

$$[x* y*] = [x y] [T]$$

  1. Substituting value x* and y* we get,

$$ [xcosӨ – y sinӨ x sinӨ+ y cosӨ] = [x y] [T]$$

  1. Hence,

$$(cosӨ \ \ sinӨ@-sinӨ \ \ cosӨ)= [T]$$

  1. Thus, the transformation matrix for 2D-rotation is:

enter image description here

$$|T| = cos^2Ө + sin^2Ө = 1$$

Please log in to add an answer.