main/src/georegression/metric/Distance2D_F64.java
public static double distance( LineParametric2D_F64 line, Point2D_F64 p ) {
		return Math.sqrt(distanceSq(line, p));
	}
public static double distance( LineParametric2D_F64 line, Point2D_F64 p ) {
		return Math.sqrt(distanceSq(line, p));
	}
public static double distance ( LineParametric2D_F64 line , Point2D_F64 p ) { return Math . sqrt ( distanceSq ( line , p ) ) ; }
<p>
Returns the Euclidean distance of the closest point on the line from a point.
</p>

@param line A line segment. Not modified.
@param p The point. Not modified.
@return Distance the closest point on the line is away from the point.
<p > Returns the Euclidean distance of the closest point on the line from a point . < / p >