Computer Aided Engineering Design

(backadmin) #1
TRANSFORMATIONS AND PROJECTIONS 25

are most convenient to represent such motions. The homogenous coordinate system, which has some
distinct advantages, is also introduced to unify the two transformations.


2.2.1 Rotation in Two-Dimensions


Consider a rigid body S packed with points Pi (i = 1, ..., n) and let a point Pj(xj,yj) on S be rotated
about the z-axis to Pjjj***(, )xy by an angle θ. From Figure 2.3, it can be observed that


transformation in Eq. (2.1) must be performed simultaneously for all points Pi(i = 1,... , n) such
that the entire rigid body reaches the new destination S*.


Example 2.1 A trapezoidal lamina ABCD lies in the x-y plane as shown with A(6, 1), B(8, 1),
C(10, 4) and D(3, 4). The lamina is to be rotated about the z-axis by 90°. Determine the new position
ABCD after rotation (Figure 2.4(a)).


x*j = l cos (θ +α)=l cos α cos θ−lsinα sin θ

= xjcosθ−yjsinθ

andyj* = lsin (θ + α)=lcosα sin θ+lsinα cos θ


=xjsinθ + yj cos θ
Or in matrix form

x
y

x
y

j
j

j
j

jj

*
*
= cos – sin *
sin cos

=


















⎥⇒

θθ
θθ

PRP (2.1)

where R =


cos – sin
sin cos

θθ
θθ






⎥ is the two-dimensional

rotation matrix. For S to be rotated by an angle θ,


Figure 2.3 Rotation in a plane

l

xj

Pj(xj, yj)

l

α

θ

O

yj

y*j

xj*

P,jjj***( )xy

The transformation matrix R is given by Eq. (2.1)
withθ = 90°. Thus,

A*
B
C
D

A
B
C
D

T T T

*
*
*

= =

cos 90 –sin 90
sin 90 cos 90

61
81
10 4
34

























°°
°°



















R

=

0–1
10

61
81
10 4
34

=

–1 6
–1 8
–4 10
–4 3































TT

2.2.2 Translation in Two-Dimensions: Homogeneous Coordinates


For a rigid body S to be translated along a vector v such that each point of S shifts by (p,q),


xxpyyq

x
y

x
y

p
q
j
*
jjj

j
j

j
j

`= + , = + = + = + PPvjj
*

*
*
⇒⎡ *


















⎥⇒ (2.2)

Figure 2.4 (a) Lamina rotation in Example 2.1

D C

A B

D*

A*

B*

C*


  • 4 –2 0 2 4 6 8 10


10

8

6

4

2

0
Free download pdf