GetPointCount() public method

Get the total number of points of the polygon
public GetPointCount ( ) : uint
return uint
Exemplo n.º 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));
 }