You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.FitArcToPoints

AVL.FitArcToPoints

Approximates points with an arc using the selected outliers suppression method.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FitArcToPoints
(
	IList<AvlNet.Point2D> inPoints,
	AvlNet.CircleFittingMethod inFittingMethod,
	out AvlNet.Arc2D? outArc
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>
inFittingMethodAvlNet.CircleFittingMethod
outArcAvlNet.Arc2D?Fitted arc or nothing if the computations failed to converge.

Examples

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

Errors

List of possible exceptions:

Error type Description
DomainError Outlier suppression is supported only in algebraic fitting methods.
DomainError Range exceeds the input point array in FitArcToPoints.

Function Overrides

See also