0% found this document useful (0 votes)
598 views24 pages

Composite Transformation

This document discusses composite transformation matrices used to represent multiple transformations applied to points or objects. It provides examples of general rotation, scaling, and translation matrices and explains how to derive the composite matrix for a sequence of transformations by multiplying the individual matrices from right to left. For a given point P, scaling factors, pivot/fixed point, and rotations, the composite matrix can be used to find the final transformed point P'.

Uploaded by

Terim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
598 views24 pages

Composite Transformation

This document discusses composite transformation matrices used to represent multiple transformations applied to points or objects. It provides examples of general rotation, scaling, and translation matrices and explains how to derive the composite matrix for a sequence of transformations by multiplying the individual matrices from right to left. For a given point P, scaling factors, pivot/fixed point, and rotations, the composite matrix can be used to find the final transformed point P'.

Uploaded by

Terim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Composite Transformation Matrix

• Arrange the transformation matrices in order from right to left.


• General Pivot- Point Rotation
• Operation :-
1. Translate (pivot point is moved to origin)
2. Rotate about origin
3. Translate (pivot point is returned to original position)
T(pivot) • R() • T(–pivot)
1 0 tx cos -sin 0 1 0 -tx
0 1 ty sin cos 0 0 1 -ty
0 0 1 . 0 0 1 . 0 0 1

1 0 tx cos -sin -tx cos+ ty sin


0 1 ty sin cos -tx sin - ty cos
0 0 1 . 0 0 1

cos -sin -tx cos+ ty sin + tx


sin cos -tx sin - ty cos + ty
0 0 1
Without using composite homogenus
matrix
• Example
– Perform 90 rotation of a point P(5, 1) about a pivot
point (2, 2). Find P’?
• 1. Translate pivot point ke asalan ( tx = -2, ty = -2)
– Titik P(5, 1 )  P’ (3, -1)
• 2. Rotate P ‘ = 90 degree
• P’(3, -1) -- > kos 90 -sin 90 3 = 0 -1 3 = 1
• sin 90 kos 90 -1 1 0 -1 3
• 3. Translate back ke pivot point (tx = 2 , ty = 2)
• titik (1, 3 )  titik akhir (3, 5)
Composite Transformation Matrix
General Fixed-Point Scaling
Operation :-
1. Translate (fixed point is moved to origin)
2. Scale with respect to origin
3. Translate (fixed point is returned to original position)

T(fixed) • S(scale) • T(–fixed)

Find the matrix that represents scaling of an


object with respect to any fixed point?

Given P(6, 8) , Sx = 2, Sy = 3 and fixed point (2,


2). Use that matrix to find P’?
Answer
1 0 tx Sx 0 0 1 0 -tx
0 1 ty 0 Sy 0 0 1 -ty
0 0 1 . 0 0 1 . 0 0 1

1 0 tx Sx 0 -tx Sx
Sx 0 -tx Sx + tx
0 1 ty 0 Sy -ty Sy = 0 Sy -ty Sy + ty
0 0 1 . 0 0 1
0 0 1

x =6, y = 8, Sx = 2, Sy = 3, tx =2, ty = 2

2 0 -2( 2) + 2 6 10
=
0
0
3
0
-2(3) + 2
1
. 8
1 1
20
Composite Transformation Matrix
General Scaling Direction
Operation :-
1. Rotate (scaling direction align with the coordinate axes)
2. Scale with respect to origin
3. Rotate (scaling direction is returned to original position)

R(–) • S(scale) • R()

Find the composite transformation matrix


by yourself !!
Example
• Find the end point for P (5, 8) if the point is
rotated by 90 degrees, then transcribed by (-6,
9) and finally scaled with a scale factor (2, 0.5).
S . T . R

Sx 0 0 1 0 tx cos -sin 0
0 Sy 0 0 1 ty sin cos 0
0 0 1 . 0 0 1 . 0 0 1

Sx 0 0 cos -sin tx
0 Sy 0 sin cos ty
0 0 1 . 0 0 1

Sxcos Sx(-sin) Sx tx
Sy sin Sy cos Sy ty
0 0 1

You might also like