You are here: Start » AVL.NET » AVS.FitLineToPoints Method

AVS.FitLineToPoints Method

Approximates points with a line using the Least Squares method.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitLineToPoints
(
	IList<AvlNet.Point2D> inPoints,
	AvlNet.Range? inRange,
	out AvlNet.Line2D outLine,
	out float outError
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>
inRangeAvlNet.Range?Determines which array points take part in fitting process. Default value: atl::NIL.
outLineAvlNet.Line2D
outErrorfloatSum of the point distances from the output line.

Function Overrides

See also