Polygon GetVertexX Method Cognex VisionPro 9.22

The X-coordinate of the vertex with the given index.

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

public double GetVertexX(
	int index
)

Parameters

index
Type: System Int32
Index of the vertex. Must be >= 0 and < NumVertices.

Return Value

Type: Double
Exceptions

ExceptionCondition
ArgumentExceptionindex < 0 or index > ( NumVertices -1)
Remarks

Gets the x-coordinate of the vertex with the given index. Use SetVertex() and GetVertex() to set or get both the x- and y-coordinate at once.

See Also