3D Transformations

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

3-D Rotation

• Three-dimensional rotation definition


– Assume looking in the negative direction along the
axis
– Positive angle rotation produce
counterclockwise rotations about a coordinate
axis
3-D Rotation….

• Three-dimensional coordinate-axis rotation


– Z-axis rotation equations
 sin
x'  x cos   y  x' cos  0 x 
  
0 y 
sin y'  x sin  0 
 z'   0 0   z 
y cos  z'  z
y' sin0 cos  0
 1    1  1
– Transformation equations for rotation about the other two
coordinate axes can be obtained by a cyclic 0 permutation
1
x  y  z  x 0 0
– x-axis rotation equations
y'  y cos  
z sin z'  y sin
 z cos  x'  x
3-D Rotation….

• Three-dimensional coordinate-axis rotation


– Y-axis rotation equations
z'  z cos   x
sin x'  z sin 
x cos  y'  y

– General Three-
dimensional
• Translate object so that the rotation axis coincides with the parallel
rotations
coordinate axis
• Perform the specified rotation about that axis
• Translate object back to the original position
1
P'  T  R x ( ) 
1
T  P R( )  T  R x
( )  T
General 3-D Rotation….

• Three-dimensional coordinate-axis rotation


Three-dimensional rotation along
arbitrary axis

• Graphical expression of the 5 steps

You might also like