Polygon MeanVertex Method Cognex VisionPro 9.22

Return the average X and Y coordinates of all the vertices. Generates an error if there are no vertices.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.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

ExceptionCondition
ShapeExceptionNumVertices < 1.
Remarks

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

See Also