Polygon GetVertex Method Cognex VisionPro 9.22

Get the coordinates of the vertex at the specified index. Index must be >= 0 and < NumVertices.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax

public void GetVertex(
	int index,
	out double x,
	out double y
)

Parameters

index
Type: System Int32
Index of the vertex.
x
Type: System Double 
X-coordinate of the vertex.
y
Type: System Double 
Y-coordinate of the vertex.
Exceptions

ExceptionCondition
ArgumentExceptionindex < 0
ArgumentExceptionindex >= NumVertices
Remarks

Gets the coordinates of the vertex at the specified index. index must be greater than or equal to 0 and less than NumVertices.

See Also