Compute the zeroth, first, and second 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: 73.0.0.0
public void ArcMoments2(
out double sum,
out double sumX,
out double sumY,
out double sumXX,
out double sumYY,
out double sumXY
)
public void ArcMoments2(
out double sum,
out double sumX,
out double sumY,
out double sumXX,
out double sumYY,
out double sumXY
)
Public Sub ArcMoments2 (
<OutAttribute> ByRef sum As Double,
<OutAttribute> ByRef sumX As Double,
<OutAttribute> ByRef sumY As Double,
<OutAttribute> ByRef sumXX As Double,
<OutAttribute> ByRef sumYY As Double,
<OutAttribute> ByRef sumXY As Double
)
Public Sub ArcMoments2 (
<OutAttribute> ByRef sum As Double,
<OutAttribute> ByRef sumX As Double,
<OutAttribute> ByRef sumY As Double,
<OutAttribute> ByRef sumXX As Double,
<OutAttribute> ByRef sumYY As Double,
<OutAttribute> ByRef sumXY As Double
)
public:
void ArcMoments2(
[OutAttribute] double% sum,
[OutAttribute] double% sumX,
[OutAttribute] double% sumY,
[OutAttribute] double% sumXX,
[OutAttribute] double% sumYY,
[OutAttribute] double% sumXY
)
public:
void ArcMoments2(
[OutAttribute] double% sum,
[OutAttribute] double% sumX,
[OutAttribute] double% sumY,
[OutAttribute] double% sumXX,
[OutAttribute] double% sumYY,
[OutAttribute] double% sumXY
)
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.
- sumXX
- Type: System Double
Integral of the function x2 over the length of the polygon.
- sumYY
- Type: System Double
Integral of the function y2 over the length of the polygon.
- sumXY
- Type: System Double
Integral of the function xy over the length of the polygon.
Compute the zeroth, first, and second moments of this polygon as if the mass were uniformly distributed along the perimeter.
All results are zero if NumVertices is less than 2.