main/src/georegression/metric/Distance2D_F64.java
public static double distance( LineSegment2D_F64 line, double x , double y) {
		return Math.sqrt(distanceSq(line, x,y));
	}
public static double distance( LineSegment2D_F64 line, double x , double y) {
		return Math.sqrt(distanceSq(line, x,y));
	}
<p>
Returns the Euclidean distance of the closest point on a line segment to the specified point.
</p>

@param line A line segment. Not modified.
@param x Point's x-coordinate
@param y Point's y-coordinate
@return Euclidean distance of the closest point on a line is away from a point.