distance

This does not work when two lines cross. TODO: Make this work for when two lines cross. TODO: This needs optimized.

Meta