Check sub type of a convex polygon.
Namespace:
AForge.Math.GeometryAssembly: AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public PolygonSubType CheckPolygonSubType( List<IntPoint> corners ) |
Parameters
- corners
- Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>)
Corners of the convex polygon to check.
Return Value
Return detected sub type of the specified shape.
Remarks
The method check corners of a convex polygon detecting its subtype. Polygon's corners are usually retrieved using IsConvexPolygon(List<(Of <(IntPoint>)>), List<(Of <(IntPoint>)>)%) method, but can be any list of 3-4 points (only sub types of triangles and quadrilateral are checked).
See AngleError and LengthError properties, which set acceptable errors for polygon sub type checking.