You are here: Start » AVL.NET » AVL.FitCircleToPoints(AvlNet.Point2D[], AvlNet.CircleFittingMethod, AvlNet.MEstimator?, AvlNet.Circle2D?)

AVL.FitCircleToPoints(AvlNet.Point2D[], AvlNet.CircleFittingMethod, AvlNet.MEstimator?, AvlNet.Circle2D?)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void FitCircleToPoints(
	AvlNet.Point2D[] inPoints,
	AvlNet.CircleFittingMethod inFittingMethod,
	AvlNet.MEstimator? inOutlierSuppression,
	out AvlNet.Circle2D? outCircle
)

Parameters

inPoints
Type: AvlNet.Point2D
inFittingMethod
Type: AvlNet.CircleFittingMethod
inOutlierSuppression
Type: System.Nullable<AvlNet.MEstimator>
outCircle
Type: System.Nullable<AvlNet.Circle2D>

Description

The operation computes a circle which approximates the input points best. Several methods are available, AlgebraicKasa being the fastest one. It is also the most inaccurate when the input points are sampled along small arc only.

Examples

The resulting outCircle drawn with the input points, inFittingMethod = AlgebraicKasa and inOutlierSuppression = Auto.

See also