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.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.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 |
|---|---|
| ShapeException | NumVertices < 2. |
Remarks
Computes the center of mass of this polygon as if the mass were uniformly distributed along the perimeter.
See Also