CogPolygon NearestVertex Method Cognex VisionPro 9.7
Return the index number of the vertex nearest to the supplied X,Y coordinates. Generates an error if there are no vertices.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public int NearestVertex(
	double x,
	double y
)

Return Value

Type: Int32

Index or the nearest vertex.

Exceptions

Remarks

Returns the index number of the vertex nearest to the supplied (x,y) coordinates.

See Also