Prepared by ononiwu ugochukwu overview of computer graphics



Download 78.8 Kb.
Page22/29
Date22.06.2021
Size78.8 Kb.
#56924
1   ...   18   19   20   21   22   23   24   25   ...   29
COM 422 - Computer Graphics & Animation


      1. Types of Transformations

Types of 2d transformation include

  1. Translation

  2. Rotation

  3. Scaling




  1. Translation


The translation is a process of moving an object from one position to another position. It is applied to an object by repositioning it along a straight line path from one coordinate location to another.

Note: It is a rigid body transformation that moves an object without deformation.

We can translate two-dimensional points by adding translation distance 𝒕𝒙 and 𝒕𝒚 to the original coordinate position (𝒙, 𝒚) to move at a new position (𝒙′, 𝒚′). This translation distance (𝒕𝒙,𝒚) is called a Translation vector or Shift vector.





Consider –

  • Initial coordinate = (x, y)

  • New coordinate after translation = (x’, y’)

  • Shift vector or Translation vector = (tx, ty)

Translation vector (tx, ty) where,

We can achieve translation by adding a translation coordinate to the old coordinate of the object-

X’ = X + tx
Y’ = Y + ty


Download 78.8 Kb.

Share with your friends:
1   ...   18   19   20   21   22   23   24   25   ...   29




The database is protected by copyright ©ininet.org 2024
send message

    Main page