Find the shortest distance between a point and line segments (not line) Find the shortest distance between a point and line segments (not line) numpy numpy