/// <summary> /// Returns true if the Polygon contains a degenerated part /// NonDegenerated holds the Non-Degenerated part of the polygon /// </summary> public static bool HasDegeneratedPart(this Polygon2d poly, out Polygon2d NonDegenerated) { int[] temp; bool result = poly.PolygonHasDegeneratedPart(out temp); NonDegenerated = new Polygon2d((from i in temp select poly[i]).ToArray <V2d>()); return(result); }
/// <summary> /// Returns true if the Polygon contains a degenerated part /// NonDegenerated holds the Non-Degenerated part of the polygon /// </summary> public static bool PolygonHasDegeneratedPart(this Polygon2d poly, out int[] NonDegenerated) => poly.PolygonHasDegeneratedPart(4.0 * double.Epsilon, out NonDegenerated);
/// <summary> /// Returns true if the Polygon contains a degenerated part /// </summary> public static bool PolygonHasDegeneratedPart(this Polygon2d poly) => poly.PolygonHasDegeneratedPart(4.0 * double.Epsilon);
/// <summary> /// Returns true if the Polygon contains a degenerated part /// NonDegenerated holds the Non-Degenerated part of the polygon /// </summary> public static bool HasDegeneratedPart(this Polygon2d poly, double absoluteEpsilon, out int[] NonDegenerated) => poly.PolygonHasDegeneratedPart(absoluteEpsilon, out NonDegenerated);
/// <summary> /// Returns true if the Polygon contains a degenerated part /// NonDegenerated holds the Non-Degenerated part of the polygon /// </summary> public static bool HasDegeneratedPart(this Polygon2d poly, out int[] NonDegenerated) => poly.PolygonHasDegeneratedPart(out NonDegenerated);
/// <summary> /// Returns true if the Polygon contains a degenerated part /// </summary> public static bool HasDegeneratedPart(this Polygon2d poly, double absoluteEpsilon) => poly.PolygonHasDegeneratedPart(absoluteEpsilon);
/// <summary> /// Returns true if the Polygon contains a degenerated part /// </summary> public static bool HasDegeneratedPart(this Polygon2d poly) => poly.PolygonHasDegeneratedPart();
/// <summary> /// Returns true if the Polygon contains a degenerated part /// </summary> public static bool HasDegeneratedPart(this Polygon2d poly) { return(poly.PolygonHasDegeneratedPart()); }