How to draw a line to the nearest intersection?

Look into the Raybounce nodes in the Data-shapes package