Determining the Shortest Distance Between a Line and a Point