The dot product method
The dot product u·v equals |u||v|cos(θ). Rearranging gives θ = arccos(u·v / (|u||v|)). The result is always between 0° and 180°.
Special cases: perpendicular vectors have a dot product of zero (90°), parallel vectors give 0° or 180°.
θ = arccos((u · v) / (|u| × |v|))
Angle between two vectors.