What is the cosine of the angle between these unit vectors:
s = (1, 0, 1)T/2 t = (1, 1, 1)T/
3 cos θ = (1, 0, 1)T · (1, 1, 1)T / (
2
3) = 2 / (
2
3) =
2 /
3 = 0.8164
![]() |
|
Applet |
Snapshot of Applet in case you don't have Java |
The dot product formula can be used to work out some geometric
problems that otherwise would be hard.
In the following figure, the red edges of the figure coincide with
the coordinate axes.
They share a mutual endpoint at
Now say that you wanted to calculate the angle between the two green edges. This might be fairly tedious using trigonometry. But now you can:
What is the angle between the two green edges?