You are here: Start » AVL.NET » Invoke.FitLineToPoints
Approximates points with a line using the Least Squares method.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void FitLineToPoints ( List<Avl.Point2D> inPoints, Optional<Avl.Range> inRange, out Avl.Line2D outLine, Optional<float> outError )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.List<Avl.Point2D> | |||
![]() | inRange | Atl.Optional<Avl.Range> | Determines which array points take part in fitting process. Default value: atl::NIL. | ||
![]() | outLine | Avl.Line2D | |||
![]() | outError | Atl.Optional<float> | Sum of the point distances from the output line. |