Corrected line intersection calculation for coincident lines