2D Geometrical Transformations

2D Geometrical Transformations are operations that change the position, size, orientation, or shape of objects in a two-dimensional plane.

1. Introduction

In computer graphics, transformations are used to manipulate objects on the screen. 2D transformations operate on objects defined in a two-dimensional space.

2. Types of 2D Transformations

3. Translation

Translation moves an object from one position to another by adding translation values to its coordinates.

x' = x + tx
y' = y + ty

4. Scaling

Scaling changes the size of an object by multiplying its coordinates by scaling factors.

x' = x × sx
y' = y × sy

5. Rotation

Rotation turns an object around a fixed point (usually the origin) by a specified angle.

x' = x cosθ − y sinθ
y' = x sinθ + y cosθ

6. Reflection

Reflection produces a mirror image of an object about a line such as x-axis, y-axis, or origin.

7. Shearing

Shearing distorts the shape of an object by shifting one coordinate in proportion to another.

x' = x + shy
y' = y + shx

8. Matrix Representation

2D transformations are represented using matrices, which allow multiple transformations to be combined efficiently.

9. Applications

Practice Questions

  1. What are 2D transformations?
  2. Explain translation and scaling.
  3. Write rotation equations.
  4. Define reflection and shearing.
  5. Where are 2D transformations used?

Practice Task

Explain with diagrams: ✔ Translation ✔ Scaling ✔ Rotation ✔ Reflection