You are here: Start » AVL.NET » Function Reference » Geometry 3D » Geometry 3D Fitting » AVL.FitLineToPoints3D
Approximates points in 3D with a line using the Least Squares method.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitLineToPoints3D ( IList<AvlNet.Point3D> inPoints, out AvlNet.Line3D outLine, out float outError )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<AvlNet.Point3D> | |||
![]() | outLine | AvlNet.Line3D | |||
![]() | outError | float |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Empty point array in FitLineToPoints3D. |
Function Overrides
- FitLineToPoints3D(IList<Point3D>, Line3D)
- FitLineToPoints3D(IList<Point3D>, Line3D, NullableValue<Single>)


