SlideShare uma empresa Scribd logo
1 de 35
2D TRANSFORMATIONS COMPUTER GRAPHICS
 
[object Object],2D Transformations
Why Transformations ? ,[object Object],[object Object],[object Object]
[object Object],[object Object]
[object Object],[object Object],[object Object]
[object Object],[object Object]
Translation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],x' y' x y t x t y  =  + P ' (8,6)  t x t y  P(2, 2) = 6 =4
Rotation ,[object Object],[object Object], P P
Rotation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],    P(x,y) x y r x’ y’  P’(x’, y’) r Identity of Trigonometry
Rotation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object], P(x,y)    x y r x’ y’  P’(x’, y’)
Scaling ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],P P’
Scaling ,[object Object],[object Object],[object Object],P(2, 5) P’ ,[object Object],[object Object]
Scaling ,[object Object],[object Object],P(2, 5) P’ ,[object Object],[object Object],P’ ,[object Object],[object Object]
Scaling ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],P(1, 2) P’
General pivot point rotation ,[object Object],[object Object],[object Object],(x r ,y r ) (a) Original Position of Object and pivot point (b) Translation of object so that pivot point (x r ,y r ) is at origin (c) Rotation was about origin (d) Translation of the object so that the pivot point is returned to position (x r ,y r )
General fixed point scaling ,[object Object],[object Object],[object Object],(x f ,y f ) (a) Original Position of Object and Fixed point (b) Translation of object so that fixed point (x f ,y f )is at origin (c) scaling was about origin (d) Translation of the object so that the Fixed point is returned to position (x f ,y f )
Composite Transformations (A) Translations If two successive translation vectors (t x1 ,t y1 ) and (t x2 ,t y2 ) are applied to a coordinate position P, the final transformed location P’ is calculated as: - P’=T(t x2 ,t y2 ) . {T(t x1 ,t y1 ) .P}   ={T(t x2 ,t y2 ) . T(t x1 ,t y1 )} .P Where P and P’ are represented as homogeneous-coordinate column vectors. We can verify this result by calculating the matrix product for the two associative groupings. Also, the composite transformation matrix for this sequence of transformations is: - 1  0  t x2 0  1  t y2 0  0  1 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],. = Or,  T(t x2 ,t y2 ) . T(t x1 ,t y1 ) = T(t x1 +t x2 , t y1 +t y2 ) Which demonstrate that two successive translations are additive.
(B)  Rotations  Two successive rotations applied to point P produce the transformed position: - P’= R( Ө 2 ) . {R( Ө 1   ) . P}   = {R( Ө 2 ) . R( Ө 1 )} . P By multiplication the two rotation matrices, we can verify that two successive rotations are additive: R( Ө 2 ) . R( Ө 1 ) = R ( Ө 1 +  Ө 2 ) So that the final rotated coordinates can be calculated with the composite rotation matrix as: - P’ = R( Ө 1 +  Ө 2 ) . P
(C) Scaling Concatenating transformation matrices for two successive scaling operations produces the following composite scaling matrix: - S x2  0  0 0  S y2  0   0  0  1 . = S x1  0  0 0  S y1  0   0  0  1 S x1  . S x2   0  0 0  S y1  .S y2  0   0  0  1 Or,  S( S x2 ,   S y2  ) . S( S x1 , S y1 ) =  S ( S x1  . S x2 ,   S y1  .S y2  ) The resulting matrix in this case indicates that successive scaling operations are multiplicative.
Other transformations ,[object Object],1 2 3 3’ 2’ 1’ Original position Reflected position Reflection about the line y=0, the X- axis , is accomplished with the transformation matrix ,[object Object],[object Object],[object Object]
Reflection -1  0  0 0  1  0 0  0  1 1’ 3’ 2’ 3 2 1 Original position Reflected position Reflection about the line x=0, the Y- axis , is accomplished with the transformation matrix
Reflection -1  0  0 0  -1  0 0  0  1 1’ 2’ 3’ 3 2 1 Original position Reflected position Reflection of an object relative to an axis perpendicular to the xy plane and passing through the coordinate origin X-axis Y-axis Origin  O (0,0) The above reflection matrix is the rotation matrix with angle=180 degree. This can be generalized to any reflection point in the xy plane. This reflection is the same as a 180 degree rotation in the xy plane using the reflection point as the pivot point.
Reflection of an object w.r.t the straight line y=x 0  1  0 1  0  0 0  0  1 1’ 3’ 2’ 3 2 1 Original position Reflected position X-axis Y-axis Origin  O (0,0)
Reflection of an object w.r.t the straight line y=-x 0  -1  0 -1  0  0 0  0  1 1’ 3’ 2’ 3 X-axis 1 Original position Reflected position 2 Y-axis Origin  O (0,0) Line Y = - X
Reflection of an arbitrary axis y=mx+b 3 2 1 Original position
3 2 1 Original position 3 2 1 Original position Translation so that it passes through origin 1’ 3’ 2’ 3 2 1 Reflected position Original position Rotate so that it coincides with x-axis and reflect also about x-axis 1’ 3’ 2’ 3 2 1 Original position Reflected position 1’ 3’ 2’ 3 2 1 Original position Reflected position Rotate back Translate back
Shear Transformations ,[object Object],[object Object]
Shears ,[object Object],[object Object],[object Object],[object Object]
An X- direction Shear (0,1) (1,1) (1,0) (0,0) (0,0) (1,0) (2,1) (3,1) For example, Sh x =2
An Y- direction Shear (0,1) (1,1) (1,0) (0,0) (0,0) (0,1) (1,3) (1,2) For example, Sh y =2 X X Y Y
CONCLUSION To manipulate  the initially created object and to display the modified object without having to redraw it, we use Transformations.
Textbook ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object]
THANK YOU ALL

Mais conteúdo relacionado

Mais procurados

The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
Mani Kanth
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
Mohd Arif
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
Mohammad Sadiq
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
Mani Kanth
 

Mais procurados (20)

Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithm
 
Scaling and shearing
Scaling and shearingScaling and shearing
Scaling and shearing
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
The sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithmThe sutherland hodgeman polygon clipping algorithm
The sutherland hodgeman polygon clipping algorithm
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
Notes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNotes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphics
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
 
Projection In Computer Graphics
Projection In Computer GraphicsProjection In Computer Graphics
Projection In Computer Graphics
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
 

Destaque

CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
vinay arora
 
3 d projections
3 d projections3 d projections
3 d projections
Mohd Arif
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics
PrathimaBaliga
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
Mohd Arif
 
Video display device
Video display deviceVideo display device
Video display device
missagrata
 
applications of computer graphics
applications of computer graphicsapplications of computer graphics
applications of computer graphics
Aaina Katyal
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates
Tarun Gehlot
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal display
Dinesh Pasi
 

Destaque (19)

3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
 
2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Color models
Color modelsColor models
Color models
 
Color Models
Color ModelsColor Models
Color Models
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 
3 d projections
3 d projections3 d projections
3 d projections
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
 
Display devices CRT and LCD screen
Display devices CRT and LCD screenDisplay devices CRT and LCD screen
Display devices CRT and LCD screen
 
lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)
 
Video display device
Video display deviceVideo display device
Video display device
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 
Computer Graphics Notes (B.Tech, KUK, MDU)
Computer Graphics Notes (B.Tech, KUK, MDU)Computer Graphics Notes (B.Tech, KUK, MDU)
Computer Graphics Notes (B.Tech, KUK, MDU)
 
applications of computer graphics
applications of computer graphicsapplications of computer graphics
applications of computer graphics
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal display
 

Semelhante a 2 d transformations by amit kumar (maimt)

2 d transformation
2 d transformation2 d transformation
2 d transformation
Ankit Garg
 
Bla b__________________la -2&3d -DD .ppt
Bla b__________________la -2&3d -DD .pptBla b__________________la -2&3d -DD .ppt
Bla b__________________la -2&3d -DD .ppt
kdemersal
 

Semelhante a 2 d transformations by amit kumar (maimt) (20)

06.Transformation.ppt
06.Transformation.ppt06.Transformation.ppt
06.Transformation.ppt
 
Unit 3 notes
Unit 3 notesUnit 3 notes
Unit 3 notes
 
2d transformation
2d transformation2d transformation
2d transformation
 
2D Transformation
2D Transformation2D Transformation
2D Transformation
 
2D Transformation
2D Transformation2D Transformation
2D Transformation
 
2D-transformation-1.pdf
2D-transformation-1.pdf2D-transformation-1.pdf
2D-transformation-1.pdf
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformations
 
2D transformations
2D transformations2D transformations
2D transformations
 
transformation IT.ppt
transformation IT.ppttransformation IT.ppt
transformation IT.ppt
 
Computer Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
 
2 d transformation
2 d transformation2 d transformation
2 d transformation
 
2-D Transformations.pdf
2-D Transformations.pdf2-D Transformations.pdf
2-D Transformations.pdf
 
2D Transformation.pdf
2D Transformation.pdf2D Transformation.pdf
2D Transformation.pdf
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
Bla b__________________la -2&3d -DD .ppt
Bla b__________________la -2&3d -DD .pptBla b__________________la -2&3d -DD .ppt
Bla b__________________la -2&3d -DD .ppt
 

Mais de Amit Kapoor

Tweening and morphing
Tweening and morphingTweening and morphing
Tweening and morphing
Amit Kapoor
 
Study from where
Study from whereStudy from where
Study from where
Amit Kapoor
 
Computer graphics syllabus
Computer graphics syllabusComputer graphics syllabus
Computer graphics syllabus
Amit Kapoor
 
Cg my own programs
Cg my own programsCg my own programs
Cg my own programs
Amit Kapoor
 
3 d modeling of objects
3 d modeling of objects3 d modeling of objects
3 d modeling of objects
Amit Kapoor
 
C aptitude scribd
C aptitude scribdC aptitude scribd
C aptitude scribd
Amit Kapoor
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2
Amit Kapoor
 
C interview question answer 1
C interview question answer 1C interview question answer 1
C interview question answer 1
Amit Kapoor
 
C notes mca i sem 2011
C notes mca i sem 2011C notes mca i sem 2011
C notes mca i sem 2011
Amit Kapoor
 
User defined data type
User defined data typeUser defined data type
User defined data type
Amit Kapoor
 

Mais de Amit Kapoor (17)

Shading
ShadingShading
Shading
 
Tweening and morphing
Tweening and morphingTweening and morphing
Tweening and morphing
 
Study from where
Study from whereStudy from where
Study from where
 
Projection
ProjectionProjection
Projection
 
Display devices
Display devicesDisplay devices
Display devices
 
Computer graphics syllabus
Computer graphics syllabusComputer graphics syllabus
Computer graphics syllabus
 
Cg my own programs
Cg my own programsCg my own programs
Cg my own programs
 
Animation
AnimationAnimation
Animation
 
3 d modeling of objects
3 d modeling of objects3 d modeling of objects
3 d modeling of objects
 
Essential c
Essential cEssential c
Essential c
 
C aptitude scribd
C aptitude scribdC aptitude scribd
C aptitude scribd
 
C in7-days
C in7-daysC in7-days
C in7-days
 
C interview question answer 2
C interview question answer 2C interview question answer 2
C interview question answer 2
 
C interview question answer 1
C interview question answer 1C interview question answer 1
C interview question answer 1
 
C notes mca i sem 2011
C notes mca i sem 2011C notes mca i sem 2011
C notes mca i sem 2011
 
C tutorials
C tutorialsC tutorials
C tutorials
 
User defined data type
User defined data typeUser defined data type
User defined data type
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 

2 d transformations by amit kumar (maimt)

  • 2.  
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19. (B) Rotations Two successive rotations applied to point P produce the transformed position: - P’= R( Ө 2 ) . {R( Ө 1 ) . P} = {R( Ө 2 ) . R( Ө 1 )} . P By multiplication the two rotation matrices, we can verify that two successive rotations are additive: R( Ө 2 ) . R( Ө 1 ) = R ( Ө 1 + Ө 2 ) So that the final rotated coordinates can be calculated with the composite rotation matrix as: - P’ = R( Ө 1 + Ө 2 ) . P
  • 20. (C) Scaling Concatenating transformation matrices for two successive scaling operations produces the following composite scaling matrix: - S x2 0 0 0 S y2 0 0 0 1 . = S x1 0 0 0 S y1 0 0 0 1 S x1 . S x2 0 0 0 S y1 .S y2 0 0 0 1 Or, S( S x2 , S y2 ) . S( S x1 , S y1 ) = S ( S x1 . S x2 , S y1 .S y2 ) The resulting matrix in this case indicates that successive scaling operations are multiplicative.
  • 21.
  • 22. Reflection -1 0 0 0 1 0 0 0 1 1’ 3’ 2’ 3 2 1 Original position Reflected position Reflection about the line x=0, the Y- axis , is accomplished with the transformation matrix
  • 23. Reflection -1 0 0 0 -1 0 0 0 1 1’ 2’ 3’ 3 2 1 Original position Reflected position Reflection of an object relative to an axis perpendicular to the xy plane and passing through the coordinate origin X-axis Y-axis Origin O (0,0) The above reflection matrix is the rotation matrix with angle=180 degree. This can be generalized to any reflection point in the xy plane. This reflection is the same as a 180 degree rotation in the xy plane using the reflection point as the pivot point.
  • 24. Reflection of an object w.r.t the straight line y=x 0 1 0 1 0 0 0 0 1 1’ 3’ 2’ 3 2 1 Original position Reflected position X-axis Y-axis Origin O (0,0)
  • 25. Reflection of an object w.r.t the straight line y=-x 0 -1 0 -1 0 0 0 0 1 1’ 3’ 2’ 3 X-axis 1 Original position Reflected position 2 Y-axis Origin O (0,0) Line Y = - X
  • 26. Reflection of an arbitrary axis y=mx+b 3 2 1 Original position
  • 27. 3 2 1 Original position 3 2 1 Original position Translation so that it passes through origin 1’ 3’ 2’ 3 2 1 Reflected position Original position Rotate so that it coincides with x-axis and reflect also about x-axis 1’ 3’ 2’ 3 2 1 Original position Reflected position 1’ 3’ 2’ 3 2 1 Original position Reflected position Rotate back Translate back
  • 28.
  • 29.
  • 30. An X- direction Shear (0,1) (1,1) (1,0) (0,0) (0,0) (1,0) (2,1) (3,1) For example, Sh x =2
  • 31. An Y- direction Shear (0,1) (1,1) (1,0) (0,0) (0,0) (0,1) (1,3) (1,2) For example, Sh y =2 X X Y Y
  • 32. CONCLUSION To manipulate the initially created object and to display the modified object without having to redraw it, we use Transformations.
  • 33.
  • 34.