Given three points, is the angle positive or negative?

94 Views Asked by At

Suppose we have the points A, B, and C on a plane. Lets say we have the line AB and AC. Is there a way to figure out if the angle between BAC is positive or negative?

Ie. did we have to do a positive rotation to get the line AB to AC (using A is the pivot) for some theta or a negative rotation?

2

There are 2 best solutions below

0
On

Hint, the relation between the distances $AB$, $AC$ and $BC$ and angle $BAC$ is given by

$$ |BC|^2 = |AB|^2 + |AC|^2 - 2 |AB| |AC| \cos\Big(BAC\Big) $$

0
On

Hint: Use the cross product $ \mathbf{a} \times \mathbf{b} = \left\| \mathbf{a} \right\| \left\| \mathbf{b} \right\| \sin \theta \ \mathbf{n} $

$\mathbf{n}$ is a unit vector perpendicular to the plane containing a and b in the direction given by the right-hand rule