You are here: Start » AVL.NET » AVL.FitCircleToPoints

AVL.FitCircleToPoints

Approximates points with a circle using selected outliers suppression method.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FitCircleToPoints
(
	IList<AvlNet.Point2D> inPoints,
	AvlNet.CircleFittingMethod inFittingMethod,
	out AvlNet.Circle2D? outCircle
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>
inFittingMethodAvlNet.CircleFittingMethod
outCircleAvlNet.Circle2D?Fitted circle or nothing if method failed to converge.

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.

Function Overrides

See also