CogPolygon GetVertex Method Cognex VisionPro 9.7
Get the coordinates of the vertex at the specified index. Index must be >= 0 and < NumVertices.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.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
ArgumentException

index < 0

ArgumentException

index >= 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