Click or drag to resize
Accord.NET (logo)

SimpleShapeCheckerIsConvexPolygon Method

Check if the specified set of points form a convex polygon shape.

Namespace:  Accord.Math.Geometry
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public bool IsConvexPolygon(
	List<IntPoint> edgePoints,
	out List<IntPoint> corners
)
Request Example View Source

Parameters

edgePoints
Type: System.Collections.GenericListIntPoint
Shape's points to check.
corners
Type: System.Collections.GenericListIntPoint
List of polygon corners on successful return.

Return Value

Type: Boolean
Returns if the specified set of points form a convex polygon shape or otherwise.
Remarks

Note Note
The method is able to detect only triangles and quadrilaterals for now. Check number of detected corners to resolve type of the detected polygon.

See Also