
Chapter
4
Reference Manual
IVC-2D
102
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Measure
Line Intersection
This tool calculates the intersection, cross point, of two straight lines. Each line is defined
by the coordinates of two points. Return values are the coordinates of the lines cross
point.
Cross points can be outside of the FOV but are still calculated correctly.
An error occurs if two points for one line coincide or in cases of parallel lines. In these
cases the step terminates with an error and the returned coordinates are set to 0.
Input Parameters
01 = Line A start point X
X coordinate one on line A.
02 = Line A start point Y
Y coordinate one on line A.
03 = Line A end point X
X coordinate two on line A.
04 = Line A end point Y
Y coordinate two on line A.
05 = Line B start point X
X coordinate one on line B.
06 = Line B start point Y
Y coordinate one on line B.
07 = Line B end point X
X coordinate two on line B.
08 = Line B end point Y
Y coordinate two on line B.
Returned Values
01 = X intersection
X coordinate of cross point
02 = Y intersection
Y coordinate of cross point
Errors
Err. 112
No cross point found.
Check that selected points for one line are different.
Check that lines are not parallel.
Note: