|
SimpleShapeCheckerIsCircle Method (ListIntPoint, Point, Single)
|
Check if the specified set of points form a circle shape.
Namespace:
Accord.Math.Geometry
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public bool IsCircle(
List<IntPoint> edgePoints,
out Point center,
out float radius
)
Public Function IsCircle (
edgePoints As List(Of IntPoint),
<OutAttribute> ByRef center As Point,
<OutAttribute> ByRef radius As Single
) As Boolean
Request Example
View SourceParameters
- edgePoints
- Type: System.Collections.GenericListIntPoint
Shape's points to check. - center
- Type: AccordPoint
Receives circle's center on successful return. - radius
- Type: SystemSingle
Receives circle's radius on successful return.
Return Value
Type:
BooleanReturns
if the specified set of points form a
circle shape or
otherwise.
Remarks Note |
---|
Circle shape must contain at least 8 points to be recognized.
The method returns always, of number of points in the specified
shape is less than 8. |
See Also