Angle Between 2 Lines

Angle θ between 2 Lines having direction ratios vectors (or normal vectors) \(\vec{A}\) and \(\vec{B}\) is given by the following formula

\(\theta = \cos^{-1} (\frac{\vec{A}\cdot\vec{B}}{\vert \vec{A} \vert \vert \vec{B} \vert})\)

The angle between the lines can be given as θ or π-θ. Generally the acute angle is considered.