Distance from a point to a line segment
Lines and Distance of point to line
point: P line_seg_start_point: P0 line_seg_end_point: P1