Class RegularPolygon
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
A regular polygon with a configurable number of equally spaced vertices placed on a circumscribing circle.
public class RegularPolygon : Polygon, IPath, ISimplePath
- 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
locationPointFThe location the center of the polygon will be placed.
verticesintThe number of vertices the RegularPolygon should have.
radiusfloatThe 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
locationPointFThe location the center of the polygon will be placed.
verticesintThe number of vertices the RegularPolygon should have.
radiusfloatThe radius of the circle that would touch all vertices.
anglefloatThe 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
xfloatThe x-coordinate of the center of the polygon.
yfloatThe y-coordinate of the center of the polygon.
verticesintThe number of vertices the RegularPolygon should have.
radiusfloatThe 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)