main/src/georegression/metric/Distance2D_F64.java
public static double distance( Polygon2D_F64 poly , Point2D_F64 p ) {
		return Math.sqrt(distanceSq(poly, p, null));
	}
public static double distance( Polygon2D_F64 poly , Point2D_F64 p ) {
		return Math.sqrt(distanceSq(poly, p, null));
	}
public static double distance ( Polygon2D_F64 poly , Point2D_F64 p ) { return Math . sqrt ( distanceSq ( poly , p , null ) ) ; }
Returns the Euclidean distance of the closest point on the Polygon to the provided point.

@param poly Polygon2D
@param p Point
@return Distance squared apart
Returns the Euclidean distance of the closest point on the Polygon to the provided point .