Grab the edges of the lines to move them around. I made an as optimized-as-possible line intersection calculation block, which I'm going to use to calculate the point of intersection between a line and a 3D polygon for a raytracer I'm going to be working on.
You don't have to give any credit if you want to use this!