Table of Contents

Class RegularPolygon

Namespace
SixLabors.ImageSharp.Drawing
Assembly
SixLabors.ImageSharp.Drawing.dll

A shape made up of a single path made up of one of more ILineSegments

public class RegularPolygon : Polygon, ISimplePath, IPath
Inheritance
RegularPolygon
Implements
Inherited Members
Extension Methods

Constructors

RegularPolygon(PointF, int, float)

Initializes a new instance of the RegularPolygon class.

public RegularPolygon(PointF location, int vertices, float radius)

Parameters

location PointF

The location the center of the polygon will be placed.

vertices int

The number of vertices the RegularPolygon should have.

radius float

The radius of the circle that would touch all vertices.

RegularPolygon(PointF, int, float, float)

Initializes a new instance of the RegularPolygon class.

public RegularPolygon(PointF location, int vertices, float radius, float angle)

Parameters

location PointF

The location the center of the polygon will be placed.

vertices int

The number of vertices the RegularPolygon should have.

radius float

The radius of the circle that would touch all vertices.

angle float

The angle of rotation in degrees.

RegularPolygon(float, float, int, float)

Initializes a new instance of the RegularPolygon class.

public RegularPolygon(float x, float y, int vertices, float radius)

Parameters

x float

The x-coordinate of the center of the polygon.

y float

The y-coordinate of the center of the polygon.

vertices int

The number of vertices the RegularPolygon should have.

radius float

The radius of the circle that would touch all vertices.

RegularPolygon(float, float, int, float, float)

Initializes a new instance of the RegularPolygon class.

public RegularPolygon(float x, float y, int vertices, float radius, float angle)

Parameters

x float

The x-coordinate of the center of the polygon.

y float

The y-coordinate of the center of the polygon.

vertices int

The number of vertices the RegularPolygon should have.

radius float

The radius of the circle that would touch all vertices.

angle float

The angle of rotation in degrees.