Compute the zeroth and first moments of this polygon as if the mass were uniformly distributed along the perimeter. Results will be zero if there are fewer than two vertices.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- sum
- Type: System Double
Integral of the function 1 over the length of the polygon.
- sumX
- Type: System Double
Integral of the function x over the length of the polygon.
- sumY
- Type: System Double
Integral of the function y over the length of the polygon.
Remarks
Compute the zeroth and first moments of this polygon as if the mass were uniformly distributed along the perimeter. All results are zero if NumVertices is less than 2.
See Also