vCalc
Reviewed
The angle between vectors (2D) formula, , Sum of vectors A and B computes the angle between two vectors. To do so, this function:
- computes the magnitude of each vector
- uses the magnitudes to convert both vectors to unit vectors,
- computes the dot product of the two unit vectors, and finally
- takes the arc-cosine of the dot product to provide the angle between the two input vectors.
Note: the input vectors do NOT need to be unit vectors.