Question: how to calculate the angle between two lines?
Answer: Let the equations of the straight lines AB and CD are y = m1 x + c1 and y = m2 x + c2 respectively intersect at a point P and make angles θ1 and θ2 respectively with the positive direction of x-axis. Let ∠APC = θ is angle between the given lines AB and CD.