main/src/georegression/metric/Distance2D_F64.java
public static double distance( LineGeneral2D_F64 line , Point2D_F64 p ) {
		return Math.abs(line.A*p.x + line.B*p.y + line.C) / Math.sqrt( line.A*line.A + line.B*line.B );
	}
public static double distance( LineGeneral2D_F64 line , Point2D_F64 p ) {
		return Math.abs(line.A*p.x + line.B*p.y + line.C) / Math.sqrt( line.A*line.A + line.B*line.B );
	}
<p>
Returns the Euclidean distance of the closest point on the line to the specified point.
</p>

@param line A line. Not modified.
@param p The point. Not modified.
@return Euclidean distance of the closest point on the line to the specified point.