Constructor Polygon
Polygon(IReadOnlyList<Point>)
Initializes a new polygon from an ordered list of vertices.
public Polygon(IReadOnlyList<Point> points)
Parameters
pointsIReadOnlyList<Point>The vertices in order. At least 3 are required.
Exceptions
- ArgumentNullException
Thrown if
pointsis null.- ArgumentException
Thrown if fewer than 3 points are provided.
Polygon(params Point[])
Initializes a new polygon from an array of vertices.
public Polygon(params Point[] points)
Parameters
pointsPoint[]The vertices in order. At least 3 are required.