FitCircle Method

NI Vision for Visual Basic

FitCircle Method

Syntax

CWIMAQVision.FitCircle RadialPoints, FitCircleReport

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Obsolete—Use FitCircle2 instead. 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.

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 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.FitCircle points, report

See Also

FitCircle2