












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













3D
3D Rotation Coordinate axis
About Y-Axis
3D
z
y
x
3D Rotation Coordinate axis
About Z-Axis
3D
z
y
x
Steps to be Follows
1. Translate (x 1 , y 1 , z 1 ) to the **origin
axis
3. Rotate the object around the z-
axis
4. Rotate back the axis to the
original orientation
5. Translate the rotation axis to
the original position
Rxy-^1
T-^1
Rxy
T
R ( ) T R x ( ) R (^) y ( ) R (^) z ( ) R (^) y ( ) R (^) x ( ) T
− 1 − 1 − 1
Rz
(x 2 ,y 2 ,z 2 )
(x 1 ,y 1 ,z 1 )
x
z
y
❖ Step 1. Translation
−
−
−
=
0 0 0 1
0 0 1
0 1 0
1 0 0
1
1
1
tz
ty
tx
T
(x 2 ,y 2 ,z 2 )
(x 1 ,y 1 ,z 1 )
x
z
y
2 2
2 2 2 2 2 2
sin , cos
d b c
l a b c a d
l
d
l
a
= +
= + + = +
= =
( )
−
=
−
=
0 0 0 1
/ 0 / 0
0 1 0 0
/ 0 / 0
0 0 0 1
sin 0 cos 0
0 1 0 0
cos 0 sin 0
a l d l
d l a l
y
R
(a,b,c)
l
d x
y
z
(a,0,d)
❖ Step 4. Rotation about z axis
( )
−
=
0 0 0 1
0 0 1 0
sin cos 0 0
cos sin 0 0
R z
l
y
x
z
Q1. Find the new coordinates of a unit cube 90 ᵒ rotated about
an axis defined by its endpoints A(2,1,0) and B(3,3,1).
x
z
y
B’(1,2,1)
−
−
=
0 0 0 1
0 0 1 0
0 1 0 1
1 0 0 2
T
A’(0,0,0)
A’(2,1,0)
B’(3,3,1)
( )
−
=
0 0 0 1
0 6
30 0 6
6
0 1 0 0
0 6
6 0 6
30
R y
6
30
6
5 cos
6
6
6
1 sin
= =
= =
x
z
y
l
B”(1,0, 5)
A’(0,0, 5 )
( )
−
=
0 0 0 1
0 0 1 0
1 0 0 0
0 1 0 0
R z 90
x y z y x
− − −
1 1 1
Finally, Matrix about the arbitrary axis
Step5. Multiplying R( θ ) by the point matrix of the
original cube
P = R ( ) P
−
−
−
−
=
1 1 1 1 1 1 1 1
467 1. 301 0. 650 0. 817 0. 726 0. 560 0. 091 0. 076
558 0. 484 0. 258 0. 184 1. 225 1. 151 0. 409 0. 483
650 1. 667 1. 834 2. 816 2. 725 1. 742 1. 909 2. 891
1 1 1 1 1 1 1 1
1 0 0 1 1 0 0 1
1 1 1 1 0 0 0 0
0 0 1 1 0 0 1 1
0 0 0 1
650 0. 741 0. 167 0. 560
742 0. 667 0. 075 1. 151
166 0. 075 0. 983 1. 742
P