# MidLineToMidLine

Computes the distance from the midpoint of one line segment to the midpoint of a second line segment.

## MidLineToMidLine Inputs

Parameter | Description
Line 0 | Specifies the coordinates of the first line segment.
X 0 | The x-coordinate of the first endpoint of the first line.
Y 0 | The y-coordinate of the first endpoint of the first line.
X 1 | The x-coordinate of the second endpoint of the first line.
Y 1 | The y-coordinate of the second endpoint of the first line.
Line 1 | Specifies the coordinates of the second line segment.
X 0 | The x-coordinate of the first endpoint of the second line.
Y 0 | The y-coordinate of the first endpoint of the second line.
X 1 | The x-coordinate of the second endpoint of the second line.
Y 1 | The y-coordinate of the second endpoint of the second line.
Show | Specifies the display mode for the function's graphical overlays on top of the image.
0 = hide all | All graphics will be hidden, except when the cell containing the function is highlighted in the spreadsheet.
1 = result graphics only | Cross showing the intersection of the two lines, if any.
2 = input and result graphics | The two input lines and the cross showing their intersection will be displayed at all times.

## MidLineToMidLine Outputs

Returns | A Dist data structure containing the directed distance between line segments.
Results | When the function is initially inserted into a cell, a result table is created in the spreadsheet.

## MidLineToMidLine Vision Data Access functions

The following Dist Vision Data Access functions are automatically inserted into the spreadsheet to create the result table:

Label | Function | Description
--- | --- | ---
X0 | GetX(Dist, 0) | The x-coordinate of the first midpoint.
Y0 | GetY(Dist, 0) | The y-coordinate of the first midpoint.
X1 | GetX(Dist, 1) | The x-coordinate of the second midpoint.
Y1 | GetY(Dist, 1) | The y-coordinate of the second midpoint.
Angle | GetAngle(Dist) | The angle between the two midpoints.
Distance | GetDistance(Dist) | The distance between the two midpoints.