FitLineToPoints
Approximates points with a line using the Least Squares method.
Syntax
C++
C#
Python
def FitLineToPoints( inPoints: list[Point2D], /, *, inRange: Range | None = None ) -> ( outLine: Line2D, outError: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | list[Point2D] | ||
![]() |
inRange | Range | None | None | Determines which array points take part in fitting process |
![]() |
outLine | Line2D | ||
![]() |
outError | float | Sum of the point distances from the output line |


