banner.gif
On-Line Computer Graphics Notes
ROTATION ABOUT THE Z-AXIS


Overview

Rotation about the z-axis is similar to rotation specified in two-dimensional space as in the three-dimensional rotation, the z-coordinate must remain constant.

pdficonsmall.gif For a pdf version of these notes look here.


Specification of the Rotation Matrix

The transformation for rotation of $ \theta$ radians about the $ z$-axis is given by the $ 4 \times 4$ matrix

\begin{displaymath}
R _ {z; \theta } \; = \;
\left[
\begin{array}{cccc}
\cos\th...
... \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1 \\
\end{array}\right]
\end{displaymath}

If this transformation is applied to the point $ (x,y,z)$, we obtain

$\displaystyle \left[
\begin{array}{cccc}
x & y & z & 1
\end{array}\right]
\left...
...cos\theta - y\sin\theta & x\sin\theta + y\cos\theta & z & 1
\end{array}\right]
$

The effect of this transform is illustrated by the following figure:

\includegraphics{figures/z-rotation-1}


Return to the Graphics Notes Home Page
Return to the Geometric Modeling Notes Home Page
Return to the UC Davis Visualization and Graphics Group Home Page


This document maintained by Ken Joy

Mail us your comments

All contents copyright (c) 1996, 1997, 1998, 1999
Computer Science Department
University of California, Davis

All rights reserved.


Ken Joy
1999-12-06