JMU
Transformation of 2D Shapes
An Introduction


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Motivation
An Instructive Shape - The Unit Square
2D Transformations in General
Scaling
Scaling (cont.)
Scaling (cont.)
Reflection
Reflection (cont.)
Reflection (cont.)
Reflection (cont.)
Shears
Shears (cont.)
Shears (cont.)
Rotation
Rotation (cont.)
Rotation (cont.)
Translation
Combining Transformations
Homogeneous Coordinates
Translation in Homogeneous Coordinates
Translation in Homogeneous Coordinates (cont.)
Scaling in Homogeneous Coordinates
Shears in Homogeneous Coordinates
Rotation in Homogeneous Coordinates
Rotation in Homogeneous Coordinates (cont.)
Reflection in Homogeneous Coordinates
Combining Transformations in Homogeneous Coordinates