ConvexShape.SetPoint Method

SFML.Net

ConvexShapeSetPoint Method
Set the position of a point. Don't forget that the polygon must remain convex, and the points need to stay ordered! PointCount must be set first in order to set the total number of points. The result is undefined if index is out of the valid range.

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public void SetPoint(
	uint index,
	Vector2f point
)
Public Sub SetPoint ( 
	index As UInteger,
	point As Vector2f
)
public:
void SetPoint(
	unsigned int index, 
	Vector2f point
)
member SetPoint : 
        index : uint32 * 
        point : Vector2f -> unit 

Parameters

index
Type: SystemUInt32
Index of the point to change, in range [0 .. PointCount - 1]
point
Type: SFML.SystemVector2f
New position of the point
See Also