Shortest distance of a point to a line