/// <summary> /// Returns the minimal distance between the polygon and the /// other supplied polygon. O(n). /// </summary> public static double MinDistanceTo(this Polygon2d polygon, Polygon2d polygon1) => polygon.MinDistanceTo(polygon1, out int pi0, out int pi1, out bool lineOnThis);
/// <summary> /// Returns the minimal distance between the polygon and the /// other supplied polygon. O(n). /// </summary> public static double MinDistanceTo(this Polygon2d polygon, Polygon2d polygon1) { int pi0, pi1; bool lineOnThis; return(polygon.MinDistanceTo(polygon1, out pi0, out pi1, out lineOnThis)); }