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
Syntax
public PolygonSubType CheckPolygonSubType(
	List<IntPoint> corners
)
Request Example View Source

Parameters

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

Return Value

Type: PolygonSubType
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(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