Click or drag to resize
Accord.NET (logo)

SimpleShapeChecker. IsTriangle Method (List< IntPoint> , List< IntPoint> )

Check if the specified set of points form a triangle shape.

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

Parameters

edgePoints
Type: System.Collections.Generic.List<IntPoint>
Shape's points to check.
corners
Type: System.Collections.Generic.List<IntPoint>
List of triangle corners on successful return.

Return Value

Type: Boolean
Returns true if the specified set of points form a triangle shape or false otherwise.
See Also