Polygon ArcCenter Method Cognex VisionPro 9.25 SR1

Compute the center of mass of this polygon as if the mass were uniformly distributed along the perimeter. Generates an error if there are less than two vertices.

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

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

Parameters

x
Type: System Double 
X-coordinate of the center.
y
Type: System Double 
Y-coordinate of the center.
Exceptions

ExceptionCondition
ShapeExceptionNumVertices < 2.
Remarks

Computes the center of mass of this polygon as if the mass were uniformly distributed along the perimeter.

See Also