Calculate the angle between two vectors using the dot product formula.
The angle θ between two vectors is found from the dot product formula: cos(θ) = (A·B) / (||A|| · ||B||). The result is always between 0° and 180°. Orthogonal vectors yield 90°, parallel vectors yield 0° or 180°.
Angle Formula
θ = arccos(A·B / (||A|| · ||B||))
No. The angle from the dot product formula is always in [0°, 180°]. For oriented angles in 2D you would need atan2.
Exactly 90°. The cosine of 90° is zero, which means the dot product is zero.