SlideShare a Scribd company logo
Two Dimensional Geometric Transformations
Changes in orientations, size and shape are accomplished with geometric transformations that
alter the coordinate description of objects.
Basic transformation
Translation
 T(tx, ty)
 Translation distances
Scale
 S(sx,sy)
 Scale factors
Rotation
 R( )
 Rotation angle
Translation
A translation is applied to an object by representing it along a straight line path from one
coordinate location to another adding translation distances, tx, ty to original coordinate position
(x,y) to move the point to a new position (x ,y ) to‟ ‟
x’ = x + tx, y’ = y + ty
The translation distance point (tx,ty) is called translation vector or shift vector.
Translation equation can be expressed as single matrix equation by using column vectors to
represent the coordinate position and the translation vector as
P =(x, y)
T =(tx , t y )
Moving a polygon from one position to another position with the translation vector (-5.5, 3.75)
Rotations:
A two-dimensional rotation is applied to an object by repositioning it along a circular path on xy
plane. To generate a rotation, specify a rotation angle θ and the position (xr,yr) of the rotation point (pivot
point) about which the object is to be rotated.
Positive values for the rotation angle define counter clock wise rotation about pivot point.
Negative value of angle rotate objects in clock wise direction. The transformation can also be described as
a rotation about a rotation axis perpendicular to xy plane and passes through pivot point
Rotation of a point from position (x,y) to position (x ,y ) through angle θ relative to coordinate origin‟ ‟
The transformation equations for rotation of a point position P when the pivot point is at coordinate
origin. In figure r is constant distance of the point positions Ф is the original angular of the point from
horizontal and θ is the rotation angle.
The transformed coordinates in terms of angle θ and Ф
x = rcos(θ+Ф) = rcosθ cosФ – rsinθsinФ‟
y = rsin(θ+Ф) = rsinθ cosФ + rcosθsinФ‟
The original coordinates of the point in polar coordinates
x = rcosФ, y = rsinФ
the transformation equation for rotating a point at position (x,y) through an angle θ about origin
x = xcosθ – ysinθ‟
y = xsinθ + ycosθ‟
Rotation equation
P = R . P‟
Rotation Matrix
Note : Positive values for the rotation angle define counterclockwise rotations about the rotation point
and negative values rotate objects in the clockwise.
Scaling
A scaling transformation alters the size of an object. This operation can be carried out for polygons by
multiplying the coordinate values (x,y) to each vertex by scaling factor Sx & Sy to produce the
transformed coordinates (x ,y )‟ ‟
x’= x.Sx y’ = y.Sy
scaling factor Sx scales object in x direction while Sy scales in y direction.
The transformation equation in matrix form
or
P = S. P‟
Where S is 2 by 2 scaling matrix
Turning a square (a) Into a rectangle (b) with scaling factors sx = 2 and sy= 1.
Any positive numeric values are valid for scaling factors sx and sy. Values less than 1 reduce the size of
the objects and values greater than 1 produce an enlarged object.
There are two types of Scaling. They are
Uniform scaling
Non Uniform Scaling
To get uniform scaling it is necessary to assign same value for sx and sy. Unequal values for sx and sy
result in a non uniform scaling.
Composite Transformations
A composite transformation is a sequence of transformations; one followed by the other. we can set up a
matrix for any sequence of transformations as a composite transformation matrix by calculating the
matrix product of the individual transformations
Translation
If two successive translation vectors (tx1,ty1) and (tx2,ty2) are applied to a
coordinate position P, the final transformed location P is calculated as‟
P =T(tx2,ty2).{T(tx1,ty1).P}‟
={T(tx2,ty2).T(tx1,ty1)}.P
Where P and P are represented as homogeneous-coordinate column vectors.‟
Or
T(tx2,ty2).T(tx1,ty1) = T(tx1+tx2,ty1+ty2)
Which demonstrated the two successive translations are additive.
Rotations
Two successive rotations applied to point P produce the transformed position
P =R(θ2).{R(θ1).P}={R(θ2).R(θ1)}.P‟
By multiplying the two rotation matrices, we can verify that two successive rotation 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‟
Scaling
Concatenating transformation matrices for two successive scaling operations produces the
following composite scaling matrix
General Pivot-point Rotation
1. Translate the object so that pivot-position is moved to the coordinate origin
2. Rotate the object about the coordinate origin
Translate the object so that the pivot point is returned to its original position
The composite transformation matrix for this sequence is obtain with the concatenation
Which can also be expressed as T(xr,yr).R(θ).T(-xr,-yr) = R(xr,yr,θ)
General fixed point scaling
Translate object so that the fixed point coincides with the coordinate origin Scale the object with
respect to the coordinate origin
Use the inverse translation of step 1 to return the object to its original position
Concatenating the matrices for these three operations produces the required scaling matix
Other Transformations
1. Reflection
2. Shear
Reflection
A reflection is a transformation that produces a mirror image of an object. The mirror image for a two-
dimensional reflection is generated relative to an axis of reflection by rotating the object 180o
about the
reflection axis. We can choose an axis of reflection in the xy plane or perpendicular to the xy plane or
coordinate origin
Reflection of an object about the x axis
Reflection the x axis is accomplished with the transformation matrix
Reflection of an object about the y axis
Reflection the y axis is accomplished with the transformation matrix
Reflection of an object about the coordinate origin
Reflection axis as the diagonal line y = x
Reflection about origin is accomplished with the transformation matrix
To obtain transformation matrix for reflection about diagonal y=x the transformation sequence is
1. Clock wise rotation by 450
2. Reflection about x axis
3. counter clock wise by 450
Reflection about the diagonal line y=x is accomplished with the transformation matrix
Reflection axis as the diagonal line y = -x
To obtain transformation matrix for reflection about diagonal y=-x the transformation sequence is
1. Clock wise rotation by 450
2. Reflection about y axis
3. counter clock wise by 450
Reflection about the diagonal line y=-x is accomplished with the transformation
matrix
Shear
A Transformation that slants the shape of an object is called the shear transformation. Two common
shearing transformations are used. One shifts x coordinate values and other shift y coordinate values.
However in both the cases only one coordinate (x or y) changes its coordinates and other preserves its
values.
X- Shear
The x shear preserves the y coordinates, but changes the x values which cause vertical lines to tilt right or
left as shown in figure
The Transformations matrix for x-shear is
which transforms the coordinates as
x =x+‟ shx .y
y = y‟
X shear with y reference line
which transforms the coordinates as
x =x+‟ shx (y- yref )
y = y‟
Example
Shx = ½ and yref=-1
Y shear with x reference line
which transforms the coordinates as
x =x‟
y = sh‟ y (x- xref) + y
Example
Shy = ½ and xref=-1

More Related Content

What's hot

Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
Patel Punit
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
Pooja Dixit
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformationsMohd Arif
 
seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation
9784
 
Supot37255412160
Supot37255412160Supot37255412160
Supot37255412160Ajay Ochani
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
Nareek
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
Susmita
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformationMohd Arif
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinatesTarun Gehlot
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
sandeep kumbhkar
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformationsMohammad Sadiq
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
Prof. Dr. K. Adisesha
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
Sardar Alam
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 dxyz120
 
2d transformations
2d transformations2d transformations
2d transformations
rajeshranjithsingh
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
Mani Kanth
 
Overview of 2D and 3D Transformation
Overview of 2D and 3D TransformationOverview of 2D and 3D Transformation
Overview of 2D and 3D Transformation
Dheeraj Sadawarte
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
Vikram Halder
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformationsMohd Arif
 

What's hot (20)

Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
 
seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation
 
Supot37255412160
Supot37255412160Supot37255412160
Supot37255412160
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformation
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
 
2 d transformations
2 d transformations2 d transformations
2 d transformations
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 d
 
2d transformations
2d transformations2d transformations
2d transformations
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
Overview of 2D and 3D Transformation
Overview of 2D and 3D TransformationOverview of 2D and 3D Transformation
Overview of 2D and 3D Transformation
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 

Similar to Unit 3 notes

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
 
06.Transformation.ppt
06.Transformation.ppt06.Transformation.ppt
06.Transformation.ppt
RobinAhmedSaikat
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformations
Amol Gaikwad
 
2D-transformation-1.pdf
2D-transformation-1.pdf2D-transformation-1.pdf
2D-transformation-1.pdf
bcanawakadalcollege
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
Timbal Mayank
 
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
 
2D transformations
2D transformations2D transformations
2D transformations
vijaysharma1265
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics
SanthiNivas
 
2Dand3D transformationppt.pptx
2Dand3D transformationppt.pptx2Dand3D transformationppt.pptx
2Dand3D transformationppt.pptx
RAMESHCHANDRANE
 
computer graphic.pptx
computer graphic.pptxcomputer graphic.pptx
computer graphic.pptx
ujjwalmatoliya
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
Daffodil International University
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
 
Computer Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
2013901097
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
Yogita Jain
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.ppt
Debjit Doira
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearing
Manthan Kanani
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
aravindangc
 
09transformation3d
09transformation3d09transformation3d
09transformation3dKetan Jani
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
HiteshJain007
 

Similar to Unit 3 notes (20)

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)
 
06.Transformation.ppt
06.Transformation.ppt06.Transformation.ppt
06.Transformation.ppt
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformations
 
2D-transformation-1.pdf
2D-transformation-1.pdf2D-transformation-1.pdf
2D-transformation-1.pdf
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
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
 
2D transformations
2D transformations2D transformations
2D transformations
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics
 
2Dand3D transformationppt.pptx
2Dand3D transformationppt.pptx2Dand3D transformationppt.pptx
2Dand3D transformationppt.pptx
 
computer graphic.pptx
computer graphic.pptxcomputer graphic.pptx
computer graphic.pptx
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
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
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.ppt
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearing
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
 
09transformation3d
09transformation3d09transformation3d
09transformation3d
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 

More from Balamurugan M

Sorting algorithms in Data Structure
Sorting algorithms in Data StructureSorting algorithms in Data Structure
Sorting algorithms in Data Structure
Balamurugan M
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Tree
Balamurugan M
 
Unit 4 notes
Unit 4 notesUnit 4 notes
Unit 4 notes
Balamurugan M
 
Unit 2 notes
Unit 2 notesUnit 2 notes
Unit 2 notes
Balamurugan M
 
Unit 1 notes
Unit 1 notesUnit 1 notes
Unit 1 notes
Balamurugan M
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit ii
Balamurugan M
 
Face recognition
Face recognitionFace recognition
Face recognition
Balamurugan M
 

More from Balamurugan M (7)

Sorting algorithms in Data Structure
Sorting algorithms in Data StructureSorting algorithms in Data Structure
Sorting algorithms in Data Structure
 
Minimum Spanning Tree
Minimum Spanning TreeMinimum Spanning Tree
Minimum Spanning Tree
 
Unit 4 notes
Unit 4 notesUnit 4 notes
Unit 4 notes
 
Unit 2 notes
Unit 2 notesUnit 2 notes
Unit 2 notes
 
Unit 1 notes
Unit 1 notesUnit 1 notes
Unit 1 notes
 
Attributes of output primitives unit ii
Attributes of output primitives unit iiAttributes of output primitives unit ii
Attributes of output primitives unit ii
 
Face recognition
Face recognitionFace recognition
Face recognition
 

Recently uploaded

Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 

Recently uploaded (20)

Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 

Unit 3 notes

  • 1. Two Dimensional Geometric Transformations Changes in orientations, size and shape are accomplished with geometric transformations that alter the coordinate description of objects. Basic transformation Translation  T(tx, ty)  Translation distances Scale  S(sx,sy)  Scale factors Rotation  R( )  Rotation angle Translation A translation is applied to an object by representing it along a straight line path from one coordinate location to another adding translation distances, tx, ty to original coordinate position (x,y) to move the point to a new position (x ,y ) to‟ ‟ x’ = x + tx, y’ = y + ty
  • 2. The translation distance point (tx,ty) is called translation vector or shift vector. Translation equation can be expressed as single matrix equation by using column vectors to represent the coordinate position and the translation vector as P =(x, y) T =(tx , t y )
  • 3. Moving a polygon from one position to another position with the translation vector (-5.5, 3.75) Rotations: A two-dimensional rotation is applied to an object by repositioning it along a circular path on xy plane. To generate a rotation, specify a rotation angle θ and the position (xr,yr) of the rotation point (pivot point) about which the object is to be rotated. Positive values for the rotation angle define counter clock wise rotation about pivot point. Negative value of angle rotate objects in clock wise direction. The transformation can also be described as a rotation about a rotation axis perpendicular to xy plane and passes through pivot point
  • 4. Rotation of a point from position (x,y) to position (x ,y ) through angle θ relative to coordinate origin‟ ‟ The transformation equations for rotation of a point position P when the pivot point is at coordinate origin. In figure r is constant distance of the point positions Ф is the original angular of the point from horizontal and θ is the rotation angle. The transformed coordinates in terms of angle θ and Ф x = rcos(θ+Ф) = rcosθ cosФ – rsinθsinФ‟ y = rsin(θ+Ф) = rsinθ cosФ + rcosθsinФ‟ The original coordinates of the point in polar coordinates x = rcosФ, y = rsinФ the transformation equation for rotating a point at position (x,y) through an angle θ about origin
  • 5. x = xcosθ – ysinθ‟ y = xsinθ + ycosθ‟ Rotation equation P = R . P‟ Rotation Matrix Note : Positive values for the rotation angle define counterclockwise rotations about the rotation point and negative values rotate objects in the clockwise. Scaling A scaling transformation alters the size of an object. This operation can be carried out for polygons by multiplying the coordinate values (x,y) to each vertex by scaling factor Sx & Sy to produce the transformed coordinates (x ,y )‟ ‟ x’= x.Sx y’ = y.Sy scaling factor Sx scales object in x direction while Sy scales in y direction.
  • 6. The transformation equation in matrix form or P = S. P‟ Where S is 2 by 2 scaling matrix Turning a square (a) Into a rectangle (b) with scaling factors sx = 2 and sy= 1. Any positive numeric values are valid for scaling factors sx and sy. Values less than 1 reduce the size of the objects and values greater than 1 produce an enlarged object. There are two types of Scaling. They are Uniform scaling Non Uniform Scaling To get uniform scaling it is necessary to assign same value for sx and sy. Unequal values for sx and sy result in a non uniform scaling. Composite Transformations
  • 7. A composite transformation is a sequence of transformations; one followed by the other. we can set up a matrix for any sequence of transformations as a composite transformation matrix by calculating the matrix product of the individual transformations Translation If two successive translation vectors (tx1,ty1) and (tx2,ty2) are applied to a coordinate position P, the final transformed location P is calculated as‟ P =T(tx2,ty2).{T(tx1,ty1).P}‟ ={T(tx2,ty2).T(tx1,ty1)}.P Where P and P are represented as homogeneous-coordinate column vectors.‟ Or T(tx2,ty2).T(tx1,ty1) = T(tx1+tx2,ty1+ty2) Which demonstrated the two successive translations are additive. Rotations Two successive rotations applied to point P produce the transformed position P =R(θ2).{R(θ1).P}={R(θ2).R(θ1)}.P‟ By multiplying the two rotation matrices, we can verify that two successive rotation 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‟
  • 8. Scaling Concatenating transformation matrices for two successive scaling operations produces the following composite scaling matrix General Pivot-point Rotation 1. Translate the object so that pivot-position is moved to the coordinate origin 2. Rotate the object about the coordinate origin Translate the object so that the pivot point is returned to its original position The composite transformation matrix for this sequence is obtain with the concatenation Which can also be expressed as T(xr,yr).R(θ).T(-xr,-yr) = R(xr,yr,θ) General fixed point scaling Translate object so that the fixed point coincides with the coordinate origin Scale the object with respect to the coordinate origin Use the inverse translation of step 1 to return the object to its original position Concatenating the matrices for these three operations produces the required scaling matix Other Transformations 1. Reflection 2. Shear Reflection
  • 9. A reflection is a transformation that produces a mirror image of an object. The mirror image for a two- dimensional reflection is generated relative to an axis of reflection by rotating the object 180o about the reflection axis. We can choose an axis of reflection in the xy plane or perpendicular to the xy plane or coordinate origin Reflection of an object about the x axis Reflection the x axis is accomplished with the transformation matrix Reflection of an object about the y axis Reflection the y axis is accomplished with the transformation matrix Reflection of an object about the coordinate origin
  • 10. Reflection axis as the diagonal line y = x Reflection about origin is accomplished with the transformation matrix To obtain transformation matrix for reflection about diagonal y=x the transformation sequence is 1. Clock wise rotation by 450 2. Reflection about x axis 3. counter clock wise by 450 Reflection about the diagonal line y=x is accomplished with the transformation matrix Reflection axis as the diagonal line y = -x
  • 11. To obtain transformation matrix for reflection about diagonal y=-x the transformation sequence is 1. Clock wise rotation by 450 2. Reflection about y axis 3. counter clock wise by 450 Reflection about the diagonal line y=-x is accomplished with the transformation matrix Shear A Transformation that slants the shape of an object is called the shear transformation. Two common shearing transformations are used. One shifts x coordinate values and other shift y coordinate values. However in both the cases only one coordinate (x or y) changes its coordinates and other preserves its values. X- Shear The x shear preserves the y coordinates, but changes the x values which cause vertical lines to tilt right or left as shown in figure
  • 12. The Transformations matrix for x-shear is which transforms the coordinates as x =x+‟ shx .y y = y‟ X shear with y reference line which transforms the coordinates as x =x+‟ shx (y- yref )
  • 13. y = y‟ Example Shx = ½ and yref=-1 Y shear with x reference line which transforms the coordinates as x =x‟ y = sh‟ y (x- xref) + y
  • 14. Example Shy = ½ and xref=-1