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.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax
Parameters
- x
- Type: System Double
X-coordinate of the center.
- y
- Type: System Double
Y-coordinate of the center.
Exceptions
| Exception | Condition |
|---|---|
| CogShapeDegeneratePolygonException | NumVertices < 2. |
Remarks
Computes the center of mass of this polygon as if the mass were uniformly distributed along the perimeter.
See Also