Finds the intersection of two lines.
[x_int,y_int] = line_intersection(l1,l2)
l1
(1×1, 1×2, 1×3, or 1×4double
) vector defining line 1:l2
(1×1, 1×2, 1×3, or 1×4double
) vector defining line 2:
x_int
(1×1double
):-coordinate of line intersection,
y_int
(1×1double
):-coordinate of line intersection,
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
- See "Intersection_of_Two_Lines.pdf" (also included with download) for the technical documentation.