To discussion on http://stackoverflow.com/questions/2824478/shortest-distance-between-two-line-segments