SlideShare a Scribd company logo
1 of 10
Composite Transformation
More complex geometric & coordinate
   transformations can be built from the basic
   transformation by using the process of
   composition of function.
Example: Scaling about a fixed point.
Transformation sequence to produce scaling
w.r.t a selected fixed position (h, k) using a
scaling function that can only scale relative to
the coordinate origin are:-
2                            1
            P   P(h,k)
1
                                         1
        1       2



    1                    2
                                 P
                         1
                1            1       2
Steps for doing composite transformation:-
1.) Translate the object so that its centre
   concides with the origin.
2.) Scale the object with respect to origin.
3.) Translate the scale object back to the
   original position.
Thus the scaling with respect to the point
can be formed by transformation.
        S sx,sy , P = Tv . S sx,sy . Tv-1
Rotation about a fixed point
We can generate rotation about any selected
pivot point (xr,yr) by performing following
sequence of translate-rotate-translate opn.
1.) Translate the object so that pivot point
   position is moved to the co-ordinate origin.
2.) Rotate the object about the co-ordinate
   origin.
3.) Translate the object so that the pivot point
   is returned to the original position.
y
y

        (xr,yr)

                  x       x


    y                 y



                  x       x
Thus the rotation about a point P can be
formed by the transformation
           R θ ,P = Tv . Rθ . Tv-1

Mirror reflection about a line:
Let line L has a y intercept (0,b) & an angle of
inclination θ. Then the reflection of an object
about a line L needs to follow the following:
1.) Translate the intersection point to the
   origin.
2.) Rotate by -θ° so that line L align with x-
   axis.
3.) Mirror reflect about the x-axis.
4.) Rotate back by θ°.
5.) Translate the origin back to the point (0,b).
                   y     P’       L


                (0,b)         P
                    θ                 x
In translation notation, we have
ML = Tv Rθ Mx R-θ T-v
NoteWe must be able to represent the basic
transformation as 3x3 homogeneous
coordinate matrices so as to compatible with
the matrix of transformation. This is
accomplished by augmenting the 2 x 2 matrix
with the third column 0 i.e x y 0
                          0     a b 0
                          1     0 0 1
Ques1 What is the relation between Rθ, R -θ &
  Rθ-1?
Ques2 (a) Find the matrix that represents
  rotation of an object by 30° about the
 origin.
 (b) What are the new coordinates of the
  point P(2,-4) after the rotation?
Ques3 Perform a 45° rotation of triangle
  A(0,0), B(1,1), C(5,2) (a) about the origin
 (b) about P(-1,-1).
Ques1 What is the relation between Rθ, R -θ &
  Rθ-1?
Ques2 (a) Find the matrix that represents
  rotation of an object by 30° about the
 origin.
 (b) What are the new coordinates of the
  point P(2,-4) after the rotation?
Ques3 Perform a 45° rotation of triangle
  A(0,0), B(1,1), C(5,2) (a) about the origin
 (b) about P(-1,-1).

More Related Content

What's hot

2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)Timbal Mayank
 
Unit 3
Unit 3Unit 3
Unit 3ypnrao
 
2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)AditiPatni3
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clippingMdAlAmin187
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphicsSHIVANI SONI
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithmPooja Dixit
 
Back face detection
Back face detectionBack face detection
Back face detectionPooja Dixit
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingArvind Kumar
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clippingMani Kanth
 
Computer graphics iv unit
Computer graphics iv unitComputer graphics iv unit
Computer graphics iv unitaravindangc
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clippingMohd Arif
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"Ankit Surti
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfacesAnkur Kumar
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTAhtesham Ullah khan
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesOmprakash Chauhan
 

What's hot (20)

2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Unit 3
Unit 3Unit 3
Unit 3
 
2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)2D Transformations(Computer Graphics)
2D Transformations(Computer Graphics)
 
2D viewing & clipping
2D viewing & clipping2D viewing & clipping
2D viewing & clipping
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
Back face detection
Back face detectionBack face detection
Back face detection
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
Computer graphics iv unit
Computer graphics iv unitComputer graphics iv unit
Computer graphics iv unit
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfaces
 
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 
Computer Graphics - clipping
Computer Graphics - clippingComputer Graphics - clipping
Computer Graphics - clipping
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - Notes
 

Similar to Composite transformations

2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformationsMohd Arif
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)Amit Kapoor
 
2 d translation
2 d translation2 d translation
2 d translationMani Kanth
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformationsNareek
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformationMani Kanth
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.pptDebjit Doira
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transformPatel Punit
 
09transformation3d
09transformation3d09transformation3d
09transformation3dKetan Jani
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformationsAmol Gaikwad
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewingYogita Jain
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2aravindangc
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D2013901097
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformationsMohd Arif
 

Similar to Composite transformations (20)

Unit 3 notes
Unit 3 notesUnit 3 notes
Unit 3 notes
 
2d transformation
2d transformation2d transformation
2d transformation
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)
 
2 d translation
2 d translation2 d translation
2 d translation
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.ppt
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
 
06.Transformation.ppt
06.Transformation.ppt06.Transformation.ppt
06.Transformation.ppt
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 
09transformation3d
09transformation3d09transformation3d
09transformation3d
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformations
 
Module 4.pptx
Module 4.pptxModule 4.pptx
Module 4.pptx
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
Computer Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
 

More from Mohd Arif

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcpMohd Arif
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarpMohd Arif
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolMohd Arif
 
Project identification
Project identificationProject identification
Project identificationMohd Arif
 
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniquesMohd Arif
 
Presentation
PresentationPresentation
PresentationMohd Arif
 
Pointers in c
Pointers in cPointers in c
Pointers in cMohd Arif
 
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peerMohd Arif
 
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systemsMohd Arif
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdpMohd Arif
 
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgetingMohd Arif
 
Network management
Network managementNetwork management
Network managementMohd Arif
 
Networing basics
Networing basicsNetworing basics
Networing basicsMohd Arif
 
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformMohd Arif
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and sslMohd Arif
 
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psecMohd Arif
 
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardwareMohd Arif
 

More from Mohd Arif (20)

Bootp and dhcp
Bootp and dhcpBootp and dhcp
Bootp and dhcp
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Project identification
Project identificationProject identification
Project identification
 
Project evalaution techniques
Project evalaution techniquesProject evalaution techniques
Project evalaution techniques
 
Presentation
PresentationPresentation
Presentation
 
Pointers in c
Pointers in cPointers in c
Pointers in c
 
Peer to-peer
Peer to-peerPeer to-peer
Peer to-peer
 
Overview of current communications systems
Overview of current communications systemsOverview of current communications systems
Overview of current communications systems
 
Overall 23 11_2007_hdp
Overall 23 11_2007_hdpOverall 23 11_2007_hdp
Overall 23 11_2007_hdp
 
Objectives of budgeting
Objectives of budgetingObjectives of budgeting
Objectives of budgeting
 
Network management
Network managementNetwork management
Network management
 
Networing basics
Networing basicsNetworing basics
Networing basics
 
Loaders
LoadersLoaders
Loaders
 
Lists
ListsLists
Lists
 
Iris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platformIris ngx next generation ip based switching platform
Iris ngx next generation ip based switching platform
 
Ip sec and ssl
Ip sec and  sslIp sec and  ssl
Ip sec and ssl
 
Ip security in i psec
Ip security in i psecIp security in i psec
Ip security in i psec
 
Intro to comp. hardware
Intro to comp. hardwareIntro to comp. hardware
Intro to comp. hardware
 
Heap sort
Heap sortHeap sort
Heap sort
 

Composite transformations

  • 1. Composite Transformation More complex geometric & coordinate transformations can be built from the basic transformation by using the process of composition of function. Example: Scaling about a fixed point. Transformation sequence to produce scaling w.r.t a selected fixed position (h, k) using a scaling function that can only scale relative to the coordinate origin are:-
  • 2. 2 1 P P(h,k) 1 1 1 2 1 2 P 1 1 1 2
  • 3. Steps for doing composite transformation:- 1.) Translate the object so that its centre concides with the origin. 2.) Scale the object with respect to origin. 3.) Translate the scale object back to the original position. Thus the scaling with respect to the point can be formed by transformation. S sx,sy , P = Tv . S sx,sy . Tv-1
  • 4. Rotation about a fixed point We can generate rotation about any selected pivot point (xr,yr) by performing following sequence of translate-rotate-translate opn. 1.) Translate the object so that pivot point position is moved to the co-ordinate origin. 2.) Rotate the object about the co-ordinate origin. 3.) Translate the object so that the pivot point is returned to the original position.
  • 5. y y (xr,yr) x x y y x x
  • 6. Thus the rotation about a point P can be formed by the transformation R θ ,P = Tv . Rθ . Tv-1 Mirror reflection about a line: Let line L has a y intercept (0,b) & an angle of inclination θ. Then the reflection of an object about a line L needs to follow the following: 1.) Translate the intersection point to the origin.
  • 7. 2.) Rotate by -θ° so that line L align with x- axis. 3.) Mirror reflect about the x-axis. 4.) Rotate back by θ°. 5.) Translate the origin back to the point (0,b). y P’ L (0,b) P θ x
  • 8. In translation notation, we have ML = Tv Rθ Mx R-θ T-v NoteWe must be able to represent the basic transformation as 3x3 homogeneous coordinate matrices so as to compatible with the matrix of transformation. This is accomplished by augmenting the 2 x 2 matrix with the third column 0 i.e x y 0 0 a b 0 1 0 0 1
  • 9. Ques1 What is the relation between Rθ, R -θ & Rθ-1? Ques2 (a) Find the matrix that represents rotation of an object by 30° about the origin. (b) What are the new coordinates of the point P(2,-4) after the rotation? Ques3 Perform a 45° rotation of triangle A(0,0), B(1,1), C(5,2) (a) about the origin (b) about P(-1,-1).
  • 10. Ques1 What is the relation between Rθ, R -θ & Rθ-1? Ques2 (a) Find the matrix that represents rotation of an object by 30° about the origin. (b) What are the new coordinates of the point P(2,-4) after the rotation? Ques3 Perform a 45° rotation of triangle A(0,0), B(1,1), C(5,2) (a) about the origin (b) about P(-1,-1).