Polygon2D Class

Closed 2D polygon definition.
Public Class Polygon2D 
Implements ICloneable
This language is not supported or no code example is available.
public class Polygon2D : ICloneable
This language is not supported or no code example is available.
Name Description
Protected constructor Polygon2D(Polygon2D)
Public constructor Polygon2D(IList<Point2D>) Points only constructor.
Public constructor Polygon2D(Point2D[], Point2D, Point2D) Points and bounding rectangle corners constructor.
Public constructor Polygon2D(int) Points only constructor.
Top
Name Description
Public property Item(int)
Public property Size
Public property VertexCount Gets Points.Count
Top
Methods
 
Name Description
Public method Clone() Creates a new object that is a copy of the current instance.
Public method ConvertToSurrogate()
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IntersecWithCrossAndT(Segment2D) Computes the intersection (both cross and touch intersections) between this 2D polygon and the specified 2D segment.
Public method Intersect(Segment2D)
Public method IntersectWith(Segment2D) Checks if the specified 2D segment intersects with this 2D polygon.
Public method IsConvex()
Public method IsDegenerated()
Public method IsOrientedClockwise()
Public method IsPointInside(Point2D) Tests if a 2D point is inside the 2D polygon.
Public method IsPointInside(Point2D, double) Tests if a 2D point is inside or onto the 2D polygon.
Public method IsPolygonInside(Polygon2D)
Public method IsPolygonInside(Polygon2D, double) Check the status of the subject polygon against the clip one.
Public method IsSelfIntersecting()
Public method IsValid() Checks that Min and Max are not null/Nothing and that the polygon is closed.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method PointInsideBoundingRect(Point2D) Checks if the provided 2D point is inside the 2D polygon bounding rectangle.
Public method PointInsideOrOntoBoundingRect(Point2D) Checks if the provided 2D point is inside or onto the 2D polygon bounding rectangle.
Public method Reverse()
Public method ToString Returns a string that represents the current object. (inherited from Object).
Public method TransformBy(Transformation)
Public method UpdateBoundingRect() Update/initialize the polygon min and max 2D points.
Top
Fields
 
Name Description
Public field Max Polygon's bounding rectangle max point
Public field Min Polygon's bounding rectangle min point.
Public field Points Polygon's points.
Top
devDept.Geometry.Polygon2D

.NET Framework

Supported in: 4.8

In this article

Definition