The Direction Cosines define the orientation of a vector with respect to a coordinate reference frame. Each direction cosine is the cosine of the angle between the vector and its corresponding coordinate axis. Let us first look at a two dimensional example in figure 1:
Figure: 2D - Direction Cosines
|
The direction cosines of are
 |
(1) |
 |
(2) |
The x coordinate is given from simple trigonometry by
 |
(3) |
where v is the magnitude of the vector . Similarily, the y coordinate is given by
 |
(4) |
but we can convert this to a cosine through the trigonometric identity that
 |
(5) |
From figure 1 we see that
 |
(6) |
which can be subsitituded into 3 to get
 |
(7) |
Note that is the angle between the y-axis and , so our vector can be represented in this 2D coordinate frame by
 |
(8) |
Extending this concept to three dimensions is quite easy, from figure 2 we can define with respect t
coordinate frame by
 |
(9) |
in a more compact form with
 |
(10) |
 |
(11) |
 |
(12) |
we get the relation
 |
(13) |
The directional cosines for figure 2 are
 |
(14) |
 |
(15) |
 |
(16) |
An important property of the direction cosines is that
 |
(17) |
One important application is to use the direction cosines to define a coordinate system with reference to another. This can be accompished by defining the location of each coordinate axis unit vector with respect to the 'parent'. Once these nine direction cosines are determined (3 for each unit vector), than a transformation matrix exists to carry out coordinate transformations between the child frame and the parent frame.
|