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

GetPointCount() public method

Get the total number of points of the polygon
public GetPointCount ( ) : uint
return uint
        public override uint GetPointCount()
        {
            return (uint)myPoints.Length;
        }

Usage Example

示例#1
0
 ////////////////////////////////////////////////////////////
 /// <summary>
 /// Construct the shape from another shape
 /// </summary>
 /// <param name="copy">Shape to copy</param>
 ////////////////////////////////////////////////////////////
 public ConvexShape(ConvexShape copy)
     : base(copy)
 {
     SetPointCount(copy.GetPointCount());
     for (uint i = 0; i < copy.GetPointCount(); ++i)
         SetPoint(i, copy.GetPoint(i));
 }