LitDev.LDFigures.AddRegularPolygon C# (CSharp) Method

AddRegularPolygon() public static method

Add a regular polygon shape.
public static AddRegularPolygon ( Primitive width, Primitive height, Primitive corners, Primitive radius ) : Primitive
width Primitive The width of the shape.
height Primitive The height of the shape.
corners Primitive The number of corners.
radius Primitive A relative radius for star shapes (e.g. 1 for pentagon, 0.5 for 5 pointed star).
return Primitive
        public static Primitive AddRegularPolygon(Primitive width, Primitive height, Primitive corners, Primitive radius)
        {
            return AddFigure(eFigure.REGULARPOLYGON, width, height, new Primitive[] { corners, radius });
        }