Shortest distance to line segment

Sign in to test your solution.