3D Vectors, why aren't my angles adding up to 180 for my triangle?

1.7k Views Asked by At

I have 3 vectors $$A\langle0,-1,-1\rangle$$ $$B\langle-1,0,-1\rangle$$ $$C \langle-1,-1,-2\rangle$$ Where C is $A+B$

Simply put I wanted to find the angle between $A$ and $B$

Using dot product I found that $A\cdot B = 1$ and then dividing by the magnitudes $||A||=\sqrt{2}$, $||B|| = \sqrt{2}$, and $||C||=\sqrt{6}$

Giving me an angle of $60^\circ$

However when I find the angle between $A$ and $C$ I find an angle of $30^\circ$ and this is the same answer I get for the angle between $B$ and $C$.

$A\cdot C=3$ then $cos\theta=\frac{3}{\sqrt{2}\sqrt{6}}$ where $\theta=30^\circ$ This is the same for $B\cdot C$

Adding all of these angles together I only get a grand total of $120^\circ$, how is this possible as I have to have $180^\circ$

Can anyone help me figure out what I am missing or where I went wrong?

4

There are 4 best solutions below

2
On

Your vectors $A$ , $B$ and $C$ form a triangle if and only if $A + B + C = 0$

1
On

The problem is that there are two possible angles for any dot product, $\theta$ and $\pi - \theta$ (Draw the intersecting lines and you will see the adjacent supplementary angles.)

Since 60 degrees is too small, try 180 degrees - 60 degrees = 120 degrees. That will work.

You could also try 180 degrees - 30 degrees = 150 degrees but that would be too large.

0
On

To expand on Jyrki Lahtonen’s comment, you’re measuring the wrong angles. Your triangle has vertices at points $A$, $B$ and $C$, so you should be measuring angles that have these three points as vertices, but all of the angles that you’re computing have the origin as their vertex instead. For instance, to find $\angle{ABC}$ of your triangle, you should be measuring the angle between the vectors $A-B$ and $C-B$—the two displacement vectors from $B$ to the other two vertices—instead of the displacement vectors to points $A$ and $C$ from the origin.

(By the way, this has nothing to do with the points being three-dimensional. You’d have the same problem in two dimensions.)

0
On

A,B and C are position vectors of points of a triangle.They do not make up the side of the triangles.B-A, C-B, A-C are the vectors which make up the sides of the triangle.