# LineFit Vision Data Access Functions

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

Function | 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.