|
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
)
Public Function IsConvexPolygon (
edgePoints As List(Of IntPoint),
<OutAttribute> ByRef corners As List(Of IntPoint)
) As Boolean
Request Example
View SourceParameters
- 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:
BooleanReturns
if the specified set of points form a
convex polygon shape or
otherwise.
Remarks 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