Class Polygon
Polygon object.
Namespace: Advanced.Algorithms.Geometry
Assembly: Advanced.Algorithms.dll
Syntax
public class Polygon : object
Constructors
Polygon(List<Line>)
Create a polygon with given edges lines.
Declaration
public Polygon(List<Line> edges)
Parameters
Type | Name | Description |
---|---|---|
List<Line> | edges |
Polygon(List<Point>)
Create polygon from the given list of consecutive boundary end points. Last and first points will be connected. If only one edge point is provided then this polygon will behave like a point, a line is created with both ends having same edge point.
Declaration
public Polygon(List<Point> edgePoints)
Parameters
Type | Name | Description |
---|---|---|
List<Point> | edgePoints |
Properties
Edges
Declaration
public List<Line> Edges { get; set; }
Property Value
Type | Description |
---|---|
List<Line> |