Back to Aurora Vision Library website
You are here: Start » Function Reference » Path » Polygon Features » PolygonSecondOrderMoments
PolygonSecondOrderMoments
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
| Module: | FoundationBasic |
Calculates all three second order moments in one pass.
Syntax
C++
C#
void avl::PolygonSecondOrderMoments ( const avl::Path& inPolygon, float& outMoment02, float& outMoment11, float& outMoment20 )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPolygon | const Path& | ||
![]() |
outMoment02 | float& | ||
![]() |
outMoment11 | float& | ||
![]() |
outMoment20 | float& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Degenerate polygon on input in PolygonSecondOrderMoments. |
| DomainError | Open path on input in PolygonSecondOrderMoments. |


