Table of Contents

Constructor Polygon

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

Polygon(IReadOnlyList<Point>)

Initializes a new polygon from an ordered list of vertices.

public Polygon(IReadOnlyList<Point> points)

Parameters

points IReadOnlyList<Point>

The vertices in order. At least 3 are required.

Exceptions

ArgumentNullException

Thrown if points is 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

points Point[]

The vertices in order. At least 3 are required.