ME F318 Computer Aided Design
Lecture 1: Geometric Transformations
BITS Pilani Dr. Amit R. Singh
Pilani Campus
1 / 10
What is a Geometric Transformation?
• A one-to-one mapping of elements from a set.
• Usually, it maps a set to itself.
• The inverse mapping must exist.
2 / 10 BITS Pilani, Pilani Campus
Classification of Geometric
Transformations
• Based on dimensions of the set.
• Based on some “special property” of the Transformation.
3 / 10 BITS Pilani, Pilani Campus
Classification based on “special property”
• Isometric Transformations: preserve angles and distances.
• Similarity Transformations: preserve angles and ratios of
distances.
• Affine Transformations: preserve parallelism.
• Projective Transformations: preserve collinearity.
4 / 10 BITS Pilani, Pilani Campus
Homogeneous Coordinates
Definition
If (x, y ) are the Euclidean coordinates of a point P, in R2 , and if
(x1 , x2 , x3 ) are any three real numbers such that x1 /x3 = x and
x2 /x3 = y , then the triple (x1 , x2 , x3 ) is said to be a set of
homogeneous coordinates for P.
5 / 10 BITS Pilani, Pilani Campus
Why Homogeneous Coordinates?
• One motivation: to define intersection of parallel lines.
• It “homogenizes” equations:
→ l1 x + l2 y + l3 = 0 becomes l1 x1 + l2 x2 + l3 x3 = 0.
→ a11 x 2 + 2a12 xy + a22 y 2 + 2a13 x + 2a23 y + a33 = 0.
becomes
a11 x12 + 2a12 x1 x2 + a22 x22 + 2a13 x1 x3 + 2a23 x2 x3 + a33 x32 = 0.
• It helps us write translations as a matrix multiplication.
6 / 10 BITS Pilani, Pilani Campus
Isometric Transformations
Definition
The general form of an 2D isometric transformation is
0
x cos θ − sin θ tx x
y 0 = sin θ cos θ ty y
1 0 0 1 1
7 / 10 BITS Pilani, Pilani Campus
Properties of Isometric Transformations
• When = 1, orientation is preserved and the transformation is
a rigid body motion. Also called as Euclidean Transformations.
• When = −1, orientation is reversed and the transformation
is a reflection composed with a rigid body motion.
• This transformation preserves lengths, angles and areas. “Iso”
= same and “Metry” = distance.
8 / 10 BITS Pilani, Pilani Campus
Similarity Transformations
Definition
The general form of a similarity transformation is
0
x s cos θ −s sin θ tx x
y 0 = s sin θ s cos θ ty y
1 0 0 1 1
The upper left 2 × 2 matrix is a rotation matrix R multiplied by a
scalar s.
9 / 10 BITS Pilani, Pilani Campus
Properties of Similarity Transformations
• It preserves shape but not necessarily the size.
Mathematically, it preserves ratio of lengths and areas.
• The parameter s provides isotropic scaling.
10 / 10 BITS Pilani, Pilani Campus