GetPoint() public method

Get the position of a point The returned point is in local coordinates, that is, the shape's transforms (position, rotation, scale) are not taken into account. The result is undefined if index is out of the valid range.
public GetPoint ( uint index ) : Vector2f
index uint Index of the point to get, in range [0 .. PointCount - 1]
return Vector2f
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));
 }
Exemplo n.º 2
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));
     }
 }