# LineFit Vision Data Access functions

Note: Each of the following functions references a LineFit data structure as the first parameter.

Function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. | Description
--- | ---
GetChi2(LineFit) | Returns a chi square value, the sum of the squares of the distances from the points to the line.
GetDistance(LineFit, [Index]) | Returns the distance between the indexed point and the line.
GetMaxDist(LineFit) | Returns the point that is farthest from the line.
GetMaxDistIndex(LineFit) | Returns the index of the point that is farthest from the line.
GetNPointUsed(LineFit) | Returns the number of points used to compute the line.
GetX(LineFit, Index) | Returns the X-coordinate of the indexed point.
GetY(LineFit, Index) | Returns the Y-coordinate of the indexed point.