Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 3D Fitting » FitLineToPoints3D
FitLineToPoints3D
Approximates points in 3D with a line using the Least Squares method.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::FitLineToPoints3D ( const atl::Array<avl::Point3D>& inPoints, avl::Line3D& outLine, atl::Optional<float&> outError = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPoints | const Array<Point3D>& | |||
outLine | Line3D& | |||
outError | Optional<float&> | NIL |
Errors
Error type | Description |
---|---|
DomainError | Empty point array in FitLineToPoints3D. |