CogPolygon MeanVertex Method Cognex VisionPro
Return the average X and Y coordinates of all the vertices. Generates an error if there are no vertices.

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

public void MeanVertex(
	out double x,
	out double y
)

Parameters

x
Type: System Double 

The mean x-coordinate.

y
Type: System Double 

The mean y-coordinate.

Exceptions

Remarks

Returns the average x- and y-coordinates of all the vertices.

See Also