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
| Improve this Doc View SourceRegularPolygon(PointF, Int32, Single)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(PointF location, int verticies, float radius)
Parameters
Type | Name | Description |
---|---|---|
PointF | location | The location the center of the polygon will be placed. |
Int32 | verticies | The number of verticies the RegularPolygon should have. |
Single | radius | The radius of the circle that would touch all verticies. |
RegularPolygon(PointF, Int32, Single, Single)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(PointF location, int verticies, float radius, float angle)
Parameters
Type | Name | Description |
---|---|---|
PointF | location | The location the center of the polygon will be placed. |
Int32 | verticies | The number of verticies the RegularPolygon should have. |
Single | radius | The radius of the circle that would touch all verticies. |
Single | angle | The angle of rotation in Radians |
RegularPolygon(Single, Single, Int32, Single)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(float x, float y, int verticies, float radius)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of the center of the polygon. |
Single | y | The y-coordinate of the center of the polygon. |
Int32 | verticies | The number of verticies the RegularPolygon should have. |
Single | radius | The radius of the circle that would touch all verticies. |
RegularPolygon(Single, Single, Int32, Single, Single)
Initializes a new instance of the RegularPolygon class.
Declaration
public RegularPolygon(float x, float y, int verticies, float radius, float angle)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x-coordinate of the center of the polygon. |
Single | y | The y-coordinate of the center of the polygon. |
Int32 | verticies | The number of verticies the RegularPolygon should have. |
Single | radius | The radius of the circle that would touch all verticies. |
Single | angle | The angle of rotation in Radians |