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

AVL.FitArcToPath

Approximates path by an arc using the selected outliers suppression method and considering path's start and end.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void FitArcToPath
(
	AvlNet.Path inPath,
	AvlNet.CircleFittingMethod inFittingMethod,
	out AvlNet.Arc2D? outArc
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inFittingMethodAvlNet.CircleFittingMethod
outArcAvlNet.Arc2D?Fitted arc or nothing if the computations failed to converge.

Examples

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

Errors

List of possible exceptions:

Error type Description
DomainError Outlier suppression is supported only in algebraic fitting methods.

Function Overrides

See also