Class RegularPolygon
A shape made up of a single path made up of one of more ILineSegments
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public class RegularPolygon : Polygon, ISimplePath, IPath
Constructors
| Edit this page View SourceRegularPolygon(PointF, int, float)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(PointF location, int vertices, float radius)
Parameters
Type | Name | Description |
---|---|---|
PointF | location | The location the center of the polygon will be placed. |
int | vertices | The number of vertices the RegularPolygon should have. |
float | radius | The radius of the circle that would touch all vertices. |
RegularPolygon(PointF, int, float, float)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(PointF location, int vertices, float radius, float angle)
Parameters
Type | Name | Description |
---|---|---|
PointF | location | The location the center of the polygon will be placed. |
int | vertices | The number of vertices the RegularPolygon should have. |
float | radius | The radius of the circle that would touch all vertices. |
float | angle | The angle of rotation in Radians |
RegularPolygon(float, float, int, float)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(float x, float y, int vertices, float radius)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x-coordinate of the center of the polygon. |
float | y | The y-coordinate of the center of the polygon. |
int | vertices | The number of vertices the RegularPolygon should have. |
float | radius | The radius of the circle that would touch all vertices. |
RegularPolygon(float, float, int, float, float)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(float x, float y, int vertices, float radius, float angle)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x-coordinate of the center of the polygon. |
float | y | The y-coordinate of the center of the polygon. |
int | vertices | The number of vertices the RegularPolygon should have. |
float | radius | The radius of the circle that would touch all vertices. |
float | angle | The angle of rotation in Radians |