SFML.Graphics.ConvexShape.SetPointCount C# (CSharp) Method

SetPointCount() public method

Set the number of points of the polygon. The count must be greater than 2 to define a valid shape.
public SetPointCount ( uint count ) : void
count uint New number of points of the polygon
return void
        public void SetPointCount(uint count)
        {
            Array.Resize(ref myPoints, (int)count);
            Update();
        }