FitCircle2 Method
Syntax
CWIMAQVision.FitCircle2 RadialPoints, Options, FitCircleReport
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Finds the circle that best represents a set of points.
Remarks
You must supply at least three non-colinear points to fit to the edge of the circle.
Parameters
RadialPoints As CWIMAQPoints
The coordinates of the points to use for the fit. This collection must have at least three items.
Options As CWIMAQFitCircleOptions
The options that the algorithm will use.
FitCircleReport As CWIMAQFitCircleReport
On return, a report containing information about the circle that best represents the set of points.
Example
Dim report As New CWIMAQFitCircleReport Dim options As New CWIMAQFitCircleOptions Dim points As New CWIMAQPoints ' Find the circle that passes through ' (100,100), (100,-100), (-100,100) points.Initialize Array(100, 100, -100), Array(100, -100, 100) CWIMAQVision1.FitCircle2 points, options, report