Canvas Demo, Experiment Ten

This solves the quadratic equation successfully, and handles the case where the slope is undefined. It also handles a new issue where one of the target lines traverses the X-axis, and generates an angle that proved pernicious to "closest angle" calculations.