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

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
        public override Vector2f GetPoint(uint index)
        {
            return myPoints[index];
        }

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));
 }
All Usage Examples Of SFML.Graphics.ConvexShape::GetPoint