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