Click or drag to resize
Accord.NET (logo)

SimpleShapeCheckerCheckPolygonSubType Method

Check sub type of a convex polygon.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
public PolygonSubType CheckPolygonSubType(
	List<IntPoint> corners
Request Example View Source


Type: System.Collections.GenericListIntPoint
Corners of the convex polygon to check.

Return Value

Type: PolygonSubType
Return detected sub type of the specified shape.

The method check corners of a convex polygon detecting its subtype. Polygon's corners are usually retrieved using IsConvexPolygon(ListIntPoint, ListIntPoint) 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.

See Also